mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 01:34:25 +00:00 
			
		
		
		
	health.vim: normalize slashes for script path (#7525)
:checkhealth reports that remote plugins are unregistered after running :UpdateRemotePlugins because of the backslashes in filepath. Normalize them to forward slashes because the paths in rplugin.vim are normalized in autoload/remote/host.vim.
This commit is contained in:
		
				
					committed by
					
						
						Justin M. Keyes
					
				
			
			
				
	
			
			
			
						parent
						
							e6beb60da5
						
					
				
				
					commit
					a43a573ad5
				
			@@ -58,7 +58,7 @@ function! s:check_rplugin_manifest() abort
 | 
				
			|||||||
      let contents = join(readfile(script))
 | 
					      let contents = join(readfile(script))
 | 
				
			||||||
      if contents =~# '\<\%(from\|import\)\s\+neovim\>'
 | 
					      if contents =~# '\<\%(from\|import\)\s\+neovim\>'
 | 
				
			||||||
        if script =~# '[\/]__init__\.py$'
 | 
					        if script =~# '[\/]__init__\.py$'
 | 
				
			||||||
          let script = fnamemodify(script, ':h')
 | 
					          let script = tr(fnamemodify(script, ':h'), '\', '/')
 | 
				
			||||||
        endif
 | 
					        endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if !has_key(existing_rplugins, script)
 | 
					        if !has_key(existing_rplugins, script)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user