Support "(modified content, untracked content)"

This commit is contained in:
Tim Pope
2011-04-26 08:44:49 -04:00
parent bb191c1939
commit 5e25040a97

View File

@@ -619,7 +619,7 @@ function! s:StageToggle(lnum1,lnum2) abort
endif endif
return '' return ''
endif endif
let filename = matchstr(line,'^#\t\%([[:alpha:] ]\+: *\)\=\zs.\{-\}\ze\%( (new commits)\)\=$') let filename = matchstr(line,'^#\t\%([[:alpha:] ]\+: *\)\=\zs.\{-\}\ze\%( (\a\+ [[:alpha:], ]\+)\)\=$')
if filename ==# '' if filename ==# ''
continue continue
endif endif