mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33:47 -05:00
Avoid stepping on status window in :Gclog/:Gllog
Closes https://github.com/tpope/vim-fugitive/issues/1790
This commit is contained in:
@@ -801,6 +801,7 @@ function! s:QuickfixCreate(nr, opts) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:QuickfixStream(nr, event, title, cmd, first, mods, callback, ...) abort
|
function! s:QuickfixStream(nr, event, title, cmd, first, mods, callback, ...) abort
|
||||||
|
call s:BlurStatus()
|
||||||
let mods = s:Mods(a:mods)
|
let mods = s:Mods(a:mods)
|
||||||
let opts = {'title': a:title, 'context': {'items': []}}
|
let opts = {'title': a:title, 'context': {'items': []}}
|
||||||
call s:QuickfixCreate(a:nr, opts)
|
call s:QuickfixCreate(a:nr, opts)
|
||||||
@@ -834,7 +835,6 @@ function! s:QuickfixStream(nr, event, title, cmd, first, mods, callback, ...) ab
|
|||||||
|
|
||||||
silent exe s:DoAutocmd('QuickFixCmdPost ' . event)
|
silent exe s:DoAutocmd('QuickFixCmdPost ' . event)
|
||||||
if a:first && len(s:QuickfixGet(a:nr))
|
if a:first && len(s:QuickfixGet(a:nr))
|
||||||
call s:BlurStatus()
|
|
||||||
return mods . (a:nr < 0 ? 'cfirst' : 'lfirst')
|
return mods . (a:nr < 0 ? 'cfirst' : 'lfirst')
|
||||||
else
|
else
|
||||||
return 'exe'
|
return 'exe'
|
||||||
|
|||||||
Reference in New Issue
Block a user