diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 92bd574..9fef6fe 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -3737,7 +3737,7 @@ function! s:GrepSubcommand(line1, line2, range, bang, mods, args) abort redraw call s:QuickfixCreate(listnr, {'title': (listnr < 0 ? ':Ggrep ' : ':Glgrep ') . s:fnameescape(args)}) let tempfile = tempname() - let event = listnr < 0 ? 'grep-fugtiive' : 'lgrep-fugitive' + let event = listnr < 0 ? 'grep-fugitive' : 'lgrep-fugitive' silent exe s:DoAutocmd('QuickFixCmdPre ' . event) exe '!' . escape(s:UserCommand(dir, cmd + args), '%#!') \ printf(&shellpipe . (&shellpipe =~# '%s' ? '' : ' %s'), s:shellesc(tempfile))