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]
|
local entry = M.cache[modkey]
|
||||||
if entry then
|
if entry then
|
||||||
|
entry.modpath = modpath
|
||||||
entry.used = os.time()
|
entry.used = os.time()
|
||||||
if M.eq(entry.hash, hash) then
|
if M.eq(entry.hash, hash) then
|
||||||
-- found in cache and up to date
|
-- found in cache and up to date
|
||||||
|
|
Loading…
Reference in New Issue