Skip to content

Commit b2dec14

Browse files
committed
fix(cache): check full paths of cached modpaths. Fixes #324
1 parent af351f6 commit b2dec14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/lazy/core/cache.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function M.check_path(modname, modpath)
5555

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

0 commit comments

Comments
 (0)