diff options
author | Shougo <Shougo.Matsu@gmail.com> | 2016-10-12 08:04:59 +0900 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-10-12 01:04:59 +0200 |
commit | 1dde512498d2fa9f3427861b5d4f894c778f992b (patch) | |
tree | de53d621f99756c3a7759c07489445ca6bdf2b62 | |
parent | f1bc50d7da4b6aaba86b53d1df9576e8a629de6f (diff) | |
download | rneovim-1dde512498d2fa9f3427861b5d4f894c778f992b.tar.gz rneovim-1dde512498d2fa9f3427861b5d4f894c778f992b.tar.bz2 rneovim-1dde512498d2fa9f3427861b5d4f894c778f992b.zip |
UpdateRemotePlugins: Discard duplicate paths. (#5464)
-rw-r--r-- | runtime/autoload/remote/host.vim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/autoload/remote/host.vim b/runtime/autoload/remote/host.vim index d4e8e98bc0..1f30b91ab8 100644 --- a/runtime/autoload/remote/host.vim +++ b/runtime/autoload/remote/host.vim @@ -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 |