mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 11:24:14 +00:00
fix(cache): overwrite cache entry with new modpath when loading a file. Fixes #90
This commit is contained in:
parent
63042310f4
commit
2200284165
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue