Skip to content

Commit bff90d7

Browse files
committed
Work around weird lockup on ancient Vim
Closes #118.
1 parent 099b918 commit bff90d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

autoload/pathogen.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ endfunction
4444
" Split a path into a list.
4545
function! pathogen#split(path) abort
4646
if type(a:path) == type([]) | return a:path | endif
47+
if empty(a:path) | return [] | endif
4748
let split = split(a:path,'\\\@<!\%(\\\\\)*\zs,')
4849
return map(split,'substitute(v:val,''\\\([\\,]\)'',''\1'',"g")')
4950
endfunction

0 commit comments

Comments
 (0)