Avoid stepping on status window in :Gclog/:Gllog

Closes https://github.com/tpope/vim-fugitive/issues/1790
This commit is contained in:
Tim Pope
2021-07-12 15:47:13 -04:00
parent e9f93be356
commit b5316d0e96

View File

@@ -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'