From 9631019a3eeb4f6e4755a8075748d26d4c1d6a67 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 27 Aug 2011 17:37:24 -0400 Subject: [PATCH] Really fix pathogen#uniq() with empty strings --- autoload/pathogen.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/pathogen.vim b/autoload/pathogen.vim index 0bd0c1f..718a114 100644 --- a/autoload/pathogen.vim +++ b/autoload/pathogen.vim @@ -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