Make <C-R><C-G> a noop on irrelevant :Gstatus line
This commit is contained in:
parent
69711ec322
commit
f21ebfb2ee
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user