diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 74b4efb..31e7a70 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -973,7 +973,7 @@ function! s:ExpandSplit(string, ...) abort if handle_bar && string =~# '^\s*|' return [list, substitute(string, '^\s*', '', '')] endif - let arg = matchstr(string, '^\s*\%(' . dquote . '''[^'']*''\|\\.\|\S\)\+') + let arg = matchstr(string, '^\s*\%(' . dquote . '''[^'']*''\|\\.\|[^[:space:] ' . (handle_bar ? '|' : '') . ']\)\+') let string = strpart(string, len(arg)) let arg = substitute(substitute(arg, '^\s\+', '', ''), \ '\(' . dquote . '''\%(''''\|[^'']\)*''\|\\[' . s:fnameescape . ']\|^\\[>+-]\|!\d*\)\|' . s:expand,