host.vim: s:RegistrationCommands(): Normalize slashes.

Closes #4795
This commit is contained in:
Justin M. Keyes
2016-05-22 11:34:24 -04:00
parent 34957f7ab9
commit 46a080015f

View File

@@ -140,6 +140,7 @@ function! s:RegistrationCommands(host) abort
call remote#host#RegisterClone(host_id, a:host)
let pattern = s:plugin_patterns[a:host]
let paths = globpath(&rtp, 'rplugin/'.a:host.'/'.pattern, 0, 1)
let paths = map(paths, 'tr(v:val,"\\","/")') " Normalize slashes #4795
if empty(paths)
return []
endif