mirror of https://github.com/folke/lazy.nvim.git
fix(cache): overwrite cache entry with new modpath when loading a file. Fixes #90
This commit is contained in:
parent
63042310f4
commit
2200284165
|
@ -126,6 +126,7 @@ function M.load(modkey, modpath)
|
|||
|
||||
local entry = M.cache[modkey]
|
||||
if entry then
|
||||
entry.modpath = modpath
|
||||
entry.used = os.time()
|
||||
if M.eq(entry.hash, hash) then
|
||||
-- found in cache and up to date
|
||||
|
|
Loading…
Reference in New Issue