mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-09 12:03:47 -05:00
Don't print current line on :G|chainedcommand
This commit is contained in:
@@ -2069,7 +2069,8 @@ augroup END
|
|||||||
|
|
||||||
function! s:GitExec(line1, line2, range, count, bang, mods, reg, args, dir) abort
|
function! s:GitExec(line1, line2, range, count, bang, mods, reg, args, dir) abort
|
||||||
if empty(a:args)
|
if empty(a:args)
|
||||||
return s:StatusCommand(a:line1, a:line2, a:range, a:count, a:bang, a:mods, a:reg, '', [])
|
let cmd = s:StatusCommand(a:line1, a:line2, a:range, a:count, a:bang, a:mods, a:reg, '', [])
|
||||||
|
return empty(cmd) ? 'exe' : cmd
|
||||||
endif
|
endif
|
||||||
if a:bang
|
if a:bang
|
||||||
return s:OpenExec((a:count > 0 ? a:count : '') . (a:count ? 'split' : 'edit'), a:mods, a:args, a:dir)
|
return s:OpenExec((a:count > 0 ? a:count : '') . (a:count ? 'split' : 'edit'), a:mods, a:args, a:dir)
|
||||||
|
|||||||
Reference in New Issue
Block a user