From 03fa78141e926251221424177db8e85f39809caf Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 18 May 2020 20:43:39 -0400 Subject: [PATCH] Improve weird :Ggrep --column quickfix title --- autoload/fugitive.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 7115d47..9c257bb 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -4190,14 +4190,13 @@ function! s:GrepSubcommand(line1, line2, range, bang, mods, options) abort let args = args[1:-1] endif let name_only = s:HasOpt(args, '-l', '--files-with-matches', '--name-only', '-L', '--files-without-match') - let title = [listnr < 0 ? ':Ggrep' : ':Glgrep'] + args if listnr > 0 exe listnr 'wincmd w' else call s:BlurStatus() endif redraw - call s:QuickfixCreate(listnr, {'title': (listnr < 0 ? ':Ggrep ' : ':Glgrep ') . s:fnameescape(args)}) + call s:QuickfixCreate(listnr, {'title': (listnr < 0 ? ':Git grep ' : ':0Git grep ') . s:fnameescape(args)}) let tempfile = tempname() let event = listnr < 0 ? 'grep-fugitive' : 'lgrep-fugitive' silent exe s:DoAutocmd('QuickFixCmdPre ' . event)