Skip to content

Commit

Permalink
fix(cache): check full paths of cached modpaths. Fixes #324
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jan 5, 2023
1 parent af351f6 commit b2dec14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazy/core/cache.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function M.check_path(modname, modpath)

-- check rtp excluding plugins. This is a very small list, so should be fast
for _, path in ipairs(M.get_rtp()) do
if modpath:find(path, 1, true) == 1 then
if modpath:find(path .. "/", 1, true) == 1 then
return true
end
end
Expand Down

0 comments on commit b2dec14

Please sign in to comment.