Make <C-R><C-G> a noop on irrelevant :Gstatus line

This commit is contained in:
Tim Pope 2011-08-19 00:31:05 -04:00
parent 69711ec322
commit f21ebfb2ee

View File

@ -67,10 +67,7 @@ endfunction
function! s:recall() function! s:recall()
let rev = s:buffer().rev() let rev = s:buffer().rev()
if rev ==# ':' if rev ==# ':'
let filename = matchstr(getline('.'),'^#\t\%([[:alpha:] ]\+: *\)\=\zs.\{-\}\ze\%( (new commits)\)\=$\|^\d\{6} \x\{40\} \d\t\zs.*') return matchstr(getline('.'),'^#\t\%([[:alpha:] ]\+: *\)\=\zs.\{-\}\ze\%( (new commits)\)\=$\|^\d\{6} \x\{40\} \d\t\zs.*')
if filename !=# ''
return filename
endif
endif endif
return rev return rev
endfunction endfunction