From a09bdbb9f30670e6cdf571ac95ebee87d6f0ab32 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 19 Jun 2019 11:53:59 +1200 Subject: Refactor to avoid autoloading :lhelpgrep handler --- plugin/quickfix_auto_open.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plugin') diff --git a/plugin/quickfix_auto_open.vim b/plugin/quickfix_auto_open.vim index c9473c4..65006fa 100644 --- a/plugin/quickfix_auto_open.vim +++ b/plugin/quickfix_auto_open.vim @@ -13,8 +13,10 @@ let loaded_quickfix_auto_open = 1 " Set up hooks for events that may yield a populated quickfix or location list augroup quickfix_auto_open autocmd! - autocmd QuickFixCmdPost * - \ call quickfix_auto_open#(expand('')) autocmd VimEnter * \ cwindow + autocmd QuickFixCmdPost [^l]* + \ cwindow + autocmd QuickFixCmdPost l* + \ call quickfix_auto_open#(expand('')) augroup END -- cgit v1.2.3