From f21ebfb2eebbe32ef74a9e50338d0e951d8a3d38 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 19 Aug 2011 00:31:05 -0400 Subject: [PATCH] Make a noop on irrelevant :Gstatus line --- plugin/fugitive.vim | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 236346f..fb9bade 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -67,10 +67,7 @@ endfunction function! s:recall() let rev = s:buffer().rev() if rev ==# ':' - let filename = matchstr(getline('.'),'^#\t\%([[:alpha:] ]\+: *\)\=\zs.\{-\}\ze\%( (new commits)\)\=$\|^\d\{6} \x\{40\} \d\t\zs.*') - if filename !=# '' - return filename - endif + return matchstr(getline('.'),'^#\t\%([[:alpha:] ]\+: *\)\=\zs.\{-\}\ze\%( (new commits)\)\=$\|^\d\{6} \x\{40\} \d\t\zs.*') endif return rev endfunction