mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 14:23:51 -05:00
Focus quickfix list after :Ggrep! -q
This just feels right. If we're not jumping to a file, we probably want to scroll the list.
This commit is contained in:
@@ -5376,7 +5376,7 @@ function! s:GrepSubcommand(line1, line2, range, bang, mods, options) abort
|
||||
if quiet
|
||||
let bufnr = bufnr('')
|
||||
silent exe substitute(s:Mods(a:mods), '\<tab\>', '', '') (listnr < 0 ? 'c' : 'l').'open'
|
||||
if bufnr != bufnr('')
|
||||
if bufnr != bufnr('') && !a:bang
|
||||
wincmd p
|
||||
endif
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user