mirror of
				https://github.com/folke/lazy.nvim.git
				synced 2025-11-04 08:21:13 +00:00 
			
		
		
		
	fix(cache): check full paths of cached modpaths. Fixes #324
This commit is contained in:
		
					parent
					
						
							
								af351f69ba
							
						
					
				
			
			
				commit
				
					
						b2dec14824
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue