From 3125b07645595efe9301b63e351946916de600cd Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 20 Aug 2021 10:23:34 -0400 Subject: [PATCH] Fix :Ggrep argument parsing off-by-one error --- autoload/fugitive.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index e0ad74b..be8618b 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -5238,6 +5238,7 @@ function! s:GrepSubcommand(line1, line2, range, bang, mods, options) abort elseif args[i] =~# '^\%(-[qz]\|--quiet\)$' let quiet = 1 call remove(args, i) + continue elseif args[i] =~# '^--no-quiet$' let quiet = 0 elseif args[i] =~# '^\%(--heading\)$'