mirror of
https://github.com/neovim/neovim.git
synced 2024-09-17 20:58:20 -04:00
UpdateRemotePlugins: Discard duplicate paths. (#5464)
This commit is contained in:
parent
f1bc50d7da
commit
1dde512498
@ -191,6 +191,7 @@ function! s:RegistrationCommands(host) abort
|
||||
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
|
||||
let paths = uniq(sort(paths))
|
||||
if empty(paths)
|
||||
return []
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user