From b2dec14824383137440040da0d9d107f3a29c656 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Thu, 5 Jan 2023 13:42:17 +0100 Subject: [PATCH] fix(cache): check full paths of cached modpaths. Fixes #324 --- lua/lazy/core/cache.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazy/core/cache.lua b/lua/lazy/core/cache.lua index b63cc87..edba74a 100644 --- a/lua/lazy/core/cache.lua +++ b/lua/lazy/core/cache.lua @@ -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