mirror of
https://github.com/tpope/vim-pathogen.git
synced 2026-05-28 00:21:02 +02:00
Really fix pathogen#uniq() with empty strings
This commit is contained in:
@@ -77,6 +77,7 @@ function! pathogen#uniq(list) abort " {{{1
|
||||
if (a:list[i] ==# '' && exists('empty')) || has_key(seen,a:list[i])
|
||||
call remove(a:list,i)
|
||||
elseif a:list[i] ==# ''
|
||||
let i += 1
|
||||
let empty = 1
|
||||
else
|
||||
let seen[a:list[i]] = 1
|
||||
|
||||
Reference in New Issue
Block a user