commit fd24cb2acdb0d5273987c3a04ee824dcf980569c (tree)
parent 86a45846fcbb7f3e8dedd85d47f6b55d9cb26db5
Author: Tim Pope <code@tpope.net>
Date: Fri, 20 Aug 2021 00:46:51 -0400
Add -z to :Ggrep quickfix opening flags
I mean, it's not like we can do anything else with it.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git 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$'