From 490e03c3add30235b03689541e74ef531decd194 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 22 Aug 2021 23:33:50 -0400 Subject: [PATCH] Fix line number inclusion in :Ggrep --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index b478893..5b0e298 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -5317,7 +5317,7 @@ function! s:GrepSubcommand(line1, line2, range, bang, mods, options) abort endif exe s:DirCheck(a:options) let listnr = a:line1 == 0 ? a:line1 : a:line2 - let cmd = ['grep', '--no-column', '--no-color', '--full-name'] + let cmd = ['grep', '-n', '--no-color', '--full-name'] let dir = s:Dir(a:options) let options = s:GrepOptions(['-n'] + args, dir) if listnr > 0