From 5e25040a97580845348ea5f853085088c4840ba9 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 26 Apr 2011 08:44:49 -0400 Subject: [PATCH] Support "(modified content, untracked content)" --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 133797f..6365a1e 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -619,7 +619,7 @@ function! s:StageToggle(lnum1,lnum2) abort endif return '' endif - let filename = matchstr(line,'^#\t\%([[:alpha:] ]\+: *\)\=\zs.\{-\}\ze\%( (new commits)\)\=$') + let filename = matchstr(line,'^#\t\%([[:alpha:] ]\+: *\)\=\zs.\{-\}\ze\%( (\a\+ [[:alpha:], ]\+)\)\=$') if filename ==# '' continue endif