diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-04 13:59:32 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-04 13:59:32 +1200 |
commit | 9a3808f3b217f9cfc95d93ec111d33a0c239e922 (patch) | |
tree | 1152ca269eea31058672b0cf45df836a5c344c08 /plugin/quickfix_auto_open.vim | |
parent | Merge branch 'release/v1.0.0' (diff) | |
parent | Bump VERSION (diff) | |
download | vim-quickfix-auto-open-9a3808f3b217f9cfc95d93ec111d33a0c239e922.tar.gz vim-quickfix-auto-open-9a3808f3b217f9cfc95d93ec111d33a0c239e922.zip |
Merge branch 'release/v2.0.0'v2.0.0
* release/v2.0.0:
Make :lhelpgrep work with a deferred autocmd
Diffstat (limited to 'plugin/quickfix_auto_open.vim')
-rw-r--r-- | plugin/quickfix_auto_open.vim | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/plugin/quickfix_auto_open.vim b/plugin/quickfix_auto_open.vim index 73b3f4b..507dff3 100644 --- a/plugin/quickfix_auto_open.vim +++ b/plugin/quickfix_auto_open.vim @@ -10,13 +10,11 @@ if exists('loaded_quickfix_auto_open') || &compatible || v:version < 700 endif let loaded_quickfix_auto_open = 1 -" Set up hooks in self-clearing group +" 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('<amatch>')) autocmd VimEnter * - \ cwindow - autocmd QuickFixCmdPost [^l]* - \ cwindow - autocmd QuickFixCmdPost l* - \ lwindow + \ doautocmd quickfix_auto_open QuickFixCmdPost augroup END |