mirror of
				https://github.com/folke/lazy.nvim.git
				synced 2025-10-30 22:11:09 +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] | ||||
|   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…
	
	Add table
		Add a link
		
	
		Reference in a new issue