From 01e843c21d91b88023f05285fce9bcd1802a6b3c Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 19 Aug 2021 16:43:45 -0400 Subject: [PATCH] Avoid :Ggrep interrupt leaving behind result without file --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 27bdac3..627340c 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -5256,10 +5256,10 @@ function! s:GrepSubcommand(line1, line2, range, bang, mods, options) abort \ 'file': s:Resolve(tempfile)} let event = listnr < 0 ? 'grep-fugitive' : 'lgrep-fugitive' silent exe s:DoAutocmd('QuickFixCmdPre ' . event) - call s:RunSave(state) echo title let list = s:SystemList(s:UserCommandList(a:options) + cmd + args)[0] call writefile(list + [''], tempfile, 'b') + call s:RunSave(state) try if &more let more = 1