commit f21ebfb2eebbe32ef74a9e50338d0e951d8a3d38 (tree) parent 69711ec322d57cf06e6fba34e2e6bf0d7475b4ce Author: Tim Pope <code@tpope.net> Date: Fri, 19 Aug 2011 00:31:05 -0400 Make <C-R><C-G> a noop on irrelevant :Gstatus line Diffstat:
| M | plugin/fugitive.vim | | | 5 | +---- |
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git 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