diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2017-11-13 01:10:06 +0000 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-11-13 02:10:06 +0100 |
commit | a43a573ad5e5152d2719033f9287989fb261feaf (patch) | |
tree | 0196fc2f48c8c1816e232c3f8b8da990d64992d2 | |
parent | e6beb60da517b6d7d7461687bf91f87d097b9563 (diff) | |
download | rneovim-a43a573ad5e5152d2719033f9287989fb261feaf.tar.gz rneovim-a43a573ad5e5152d2719033f9287989fb261feaf.tar.bz2 rneovim-a43a573ad5e5152d2719033f9287989fb261feaf.zip |
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.
-rw-r--r-- | runtime/autoload/health/nvim.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/autoload/health/nvim.vim b/runtime/autoload/health/nvim.vim index 3d871faf5d..58033f0405 100644 --- a/runtime/autoload/health/nvim.vim +++ b/runtime/autoload/health/nvim.vim @@ -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) |