Skip to content
forked from neovim/neovim

Commit

Permalink
health.vim: normalize slashes for script path (neovim#7525)
Browse files Browse the repository at this point in the history
: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.
  • Loading branch information
janlazo authored and justinmk committed Nov 13, 2017
1 parent e6beb60 commit a43a573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/autoload/health/nvim.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a43a573

Please sign in to comment.