From 3d305c75a0f4eb673d916e3e1956b01de938103d Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 17 Jul 2019 17:24:26 -0400 Subject: [PATCH] Don't print current line on :G|chainedcommand --- autoload/fugitive.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index f99a5f2..899793c 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2069,7 +2069,8 @@ augroup END function! s:GitExec(line1, line2, range, count, bang, mods, reg, args, dir) abort 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 if a:bang return s:OpenExec((a:count > 0 ? a:count : '') . (a:count ? 'split' : 'edit'), a:mods, a:args, a:dir)