From 2992275d8ecf2f1f155cec21745b9b9ce55e39ea Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 16 Jul 2019 16:24:17 -0400 Subject: [PATCH] Don't load first quickfix result into status buffer --- autoload/fugitive.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 641dcef..481c4f2 100644 --- 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]