Don't jump from :Gstatus another :Gstatus
This commit is contained in:
parent
ce3d3df508
commit
bad1331607
@ -3879,7 +3879,7 @@ endfunction
|
|||||||
|
|
||||||
function! s:GF(mode) abort
|
function! s:GF(mode) abort
|
||||||
try
|
try
|
||||||
let results = &filetype ==# 'fugitive' ? [s:StatusCfile()] : &filetype ==# 'gitcommit' ? s:MessageCfile() : s:cfile()
|
let results = &filetype ==# 'fugitive' ? [s:StatusCfile()] : &filetype ==# 'gitcommit' ? [s:MessageCfile()] : s:cfile()
|
||||||
catch /^fugitive:/
|
catch /^fugitive:/
|
||||||
return 'echoerr v:errmsg'
|
return 'echoerr v:errmsg'
|
||||||
endtry
|
endtry
|
||||||
@ -3887,7 +3887,7 @@ function! s:GF(mode) abort
|
|||||||
return 'G' . a:mode .
|
return 'G' . a:mode .
|
||||||
\ ' +' . escape(join(results[1:-1], '|'), '| ') . ' ' .
|
\ ' +' . escape(join(results[1:-1], '|'), '| ') . ' ' .
|
||||||
\ s:fnameescape(results[0])
|
\ s:fnameescape(results[0])
|
||||||
elseif len(results)
|
elseif len(results) && len(results[0])
|
||||||
return 'G' . a:mode . ' ' . s:fnameescape(results[0])
|
return 'G' . a:mode . ' ' . s:fnameescape(results[0])
|
||||||
else
|
else
|
||||||
return ''
|
return ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user