commit 2992275d8ecf2f1f155cec21745b9b9ce55e39ea (tree)
parent d8acfc35c768b1d93e43a7c76ad3b2b905c178ae
Author: Tim Pope <code@tpope.net>
Date: Tue, 16 Jul 2019 16:24:17 -0400
Don't load first quickfix result into status buffer
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim
@@ -217,6 +217,7 @@ function! s:QuickfixStream(nr, title, cmd, first, callback, ...) abort
call s:QuickfixSet(a:nr, extend(buffer, call(a:callback, a:000 + [0])), 'a')
if a:first && len(s:QuickfixGet(a:nr))
+ call s:BlurStatus()
return a:nr < 0 ? 'cfirst' : 'lfirst'
else
return 'exe'
@@ -3342,6 +3343,7 @@ function! s:MergeRebase(cmd, bang, mods, args, ...) abort
if found
call setqflist(qflist, 'r')
if !a:bang
+ call s:BlurStatus()
return 'cfirst'
endif
endif
@@ -3467,6 +3469,7 @@ function! s:Grep(type, bang, arg) abort
let list = map(readfile(tempfile), 's:GrepParseLine(prefix, name_only, dir, v:val)')
call s:QuickfixSet(listnr, list, 'a')
if !a:bang && !empty(list)
+ call s:BlurStatus()
return (listnr < 0 ? 'c' : 'l').'first' . after
else
return after[1:-1]