mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-05-25 01:38:37 +08:00
Fix line number inclusion in :Ggrep
This commit is contained in:
@@ -5317,7 +5317,7 @@ function! s:GrepSubcommand(line1, line2, range, bang, mods, options) abort
|
|||||||
endif
|
endif
|
||||||
exe s:DirCheck(a:options)
|
exe s:DirCheck(a:options)
|
||||||
let listnr = a:line1 == 0 ? a:line1 : a:line2
|
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 dir = s:Dir(a:options)
|
||||||
let options = s:GrepOptions(['-n'] + args, dir)
|
let options = s:GrepOptions(['-n'] + args, dir)
|
||||||
if listnr > 0
|
if listnr > 0
|
||||||
|
|||||||
Reference in New Issue
Block a user