motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit 18893e8ca7cd24b068f82b666fb961972e0931ed (tree)
parent 1b292303c2ba26887e8550c2b54428a9c918e009
Author: Tim Pope <code@tpope.net>
Date:   Thu, 26 Sep 2019 10:45:54 -0400

Use more conventional quickfix event type for :Ggrep

References https://github.com/tpope/vim-scriptease/pull/45

Diffstat:
Mautoload/fugitive.vim | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -3737,12 +3737,13 @@ 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() - silent exe s:DoAutocmd('QuickFixCmdPre ' . (listnr < 0 ? 'Ggrep' : 'Glgrep')) + let event = listnr < 0 ? 'grep-fugtiive' : 'lgrep-fugitive' + silent exe s:DoAutocmd('QuickFixCmdPre ' . event) exe '!' . escape(s:UserCommand(dir, cmd + args), '%#!') \ printf(&shellpipe . (&shellpipe =~# '%s' ? '' : ' %s'), s:shellesc(tempfile)) let list = map(readfile(tempfile), 's:GrepParseLine(prefix, name_only, dir, v:val)') call s:QuickfixSet(listnr, list, 'a') - silent exe s:DoAutocmd('QuickFixCmdPost ' . (listnr < 0 ? 'Ggrep' : 'Glgrep')) + silent exe s:DoAutocmd('QuickFixCmdPost ' . event) if !has('gui_running') redraw endif