mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07: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:
parent
e6beb60da5
commit
a43a573ad5
@ -58,7 +58,7 @@ function! s:check_rplugin_manifest() abort
|
||||
let contents = join(readfile(script))
|
||||
if contents =~# '\<\%(from\|import\)\s\+neovim\>'
|
||||
if script =~# '[\/]__init__\.py$'
|
||||
let script = fnamemodify(script, ':h')
|
||||
let script = tr(fnamemodify(script, ':h'), '\', '/')
|
||||
endif
|
||||
|
||||
if !has_key(existing_rplugins, script)
|
||||
|
Loading…
Reference in New Issue
Block a user