Skip to content

Commit 18893e8

Browse files
committed
Use more conventional quickfix event type for :Ggrep
References tpope/vim-scriptease#45
1 parent 1b29230 commit 18893e8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

autoload/fugitive.vim

+3-2
Original file line numberDiff line numberDiff line change
@@ -3737,12 +3737,13 @@ function! s:GrepSubcommand(line1, line2, range, bang, mods, args) abort
37373737
redraw
37383738
call s:QuickfixCreate(listnr, {'title': (listnr < 0 ? ':Ggrep ' : ':Glgrep ') . s:fnameescape(args)})
37393739
let tempfile = tempname()
3740-
silent exe s:DoAutocmd('QuickFixCmdPre ' . (listnr < 0 ? 'Ggrep' : 'Glgrep'))
3740+
let event = listnr < 0 ? 'grep-fugtiive' : 'lgrep-fugitive'
3741+
silent exe s:DoAutocmd('QuickFixCmdPre ' . event)
37413742
exe '!' . escape(s:UserCommand(dir, cmd + args), '%#!')
37423743
\ printf(&shellpipe . (&shellpipe =~# '%s' ? '' : ' %s'), s:shellesc(tempfile))
37433744
let list = map(readfile(tempfile), 's:GrepParseLine(prefix, name_only, dir, v:val)')
37443745
call s:QuickfixSet(listnr, list, 'a')
3745-
silent exe s:DoAutocmd('QuickFixCmdPost ' . (listnr < 0 ? 'Ggrep' : 'Glgrep'))
3746+
silent exe s:DoAutocmd('QuickFixCmdPost ' . event)
37463747
if !has('gui_running')
37473748
redraw
37483749
endif

0 commit comments

Comments
 (0)