Skip to content

Commit

Permalink
Work around weird lockup on ancient Vim
Browse files Browse the repository at this point in the history
Closes tpope#118.
  • Loading branch information
tpope committed Apr 2, 2014
1 parent 099b918 commit bff90d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions autoload/pathogen.vim
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ endfunction
" Split a path into a list.
function! pathogen#split(path) abort
if type(a:path) == type([]) | return a:path | endif
if empty(a:path) | return [] | endif
let split = split(a:path,'\\\@<!\%(\\\\\)*\zs,')
return map(split,'substitute(v:val,''\\\([\\,]\)'',''\1'',"g")')
endfunction
Expand Down

0 comments on commit bff90d7

Please sign in to comment.