Really fix pathogen#uniq() with empty strings

This commit is contained in:
Tim Pope
2011-08-27 17:37:24 -04:00
parent fbd0cc7040
commit 9631019a3e
+1
View File
@@ -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