From fd24cb2acdb0d5273987c3a04ee824dcf980569c Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 20 Aug 2021 00:46:51 -0400 Subject: [PATCH] Add -z to :Ggrep quickfix opening flags I mean, it's not like we can do anything else with it. --- autoload/fugitive.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index a3c38c6..03ce515 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -5213,7 +5213,7 @@ function! s:GrepSubcommand(line1, line2, range, bang, mods, options) abort let quiet = 0 let i = 0 while i < len(args) && args[i] !=# '--' - let partition = matchstr(args[i], '^-' . s:grep_combine_flags . '\ze[qO]') + let partition = matchstr(args[i], '^-' . s:grep_combine_flags . '\ze[qzO]') if len(partition) > 1 call insert(args, '-' . strpart(args[i], len(partition)), i+1) let args[i] = partition @@ -5225,10 +5225,10 @@ function! s:GrepSubcommand(line1, line2, range, bang, mods, options) abort continue elseif args[i] =~# '^\%(-O\|--open-files-in-pager=\)' let handle = 0 - elseif args[i] =~# '^-q.' + elseif args[i] =~# '^-[qz].' let args[i] = '-' . args[i][2:-1] let quiet = 1 - elseif args[i] =~# '^\%(-q\|--quiet\)$' + elseif args[i] =~# '^\%(-[qz]\|--quiet\)$' let quiet = 1 call remove(args, i) elseif args[i] =~# '^--no-quiet$'