From ff146ce86056d8a1e9ad382bac6cca9ceec832ff Mon Sep 17 00:00:00 2001 From: Diego Garcia Date: Wed, 2 Nov 2016 17:36:10 -0200 Subject: [PATCH] call `ShowResults` only if using without dispatch to avoid a new panel unnecessary --- autoload/ack.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/ack.vim b/autoload/ack.vim index dbf84572..31020049 100644 --- a/autoload/ack.vim +++ b/autoload/ack.vim @@ -57,11 +57,11 @@ function! ack#Ack(cmd, args) "{{{ call s:SearchWithDispatch(l:grepprg, l:escaped_args, l:grepformat) else call s:SearchWithGrep(a:cmd, l:grepprg, l:escaped_args, l:grepformat) + call ack#ShowResults() endif " Dispatch has no callback mechanism currently, we just have to display the " list window early and wait for it to populate :-/ - call ack#ShowResults() call s:Highlight(l:grepargs) endfunction "}}}