aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-07 01:16:54 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-07 01:16:54 +1200
commit9e798d42a5c283a51d51be4762ea33b700ff5f00 (patch)
tree4a78158708a525087f180df67e308feeaf004515
parent9a3808f3b217f9cfc95d93ec111d33a0c239e922 (diff)
downloadvim-quickfix-auto-open-9e798d42a5c283a51d51be4762ea33b700ff5f00.tar.gz
vim-quickfix-auto-open-9e798d42a5c283a51d51be4762ea33b700ff5f00.zip
Define quickfix command name for VimEnter hook
Otherwise it uses the VimEnter filename, which causes a nonexistent location list error if it happens to start with 'l'.
-rw-r--r--plugin/quickfix_auto_open.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/quickfix_auto_open.vim b/plugin/quickfix_auto_open.vim
index 507dff3..96676c5 100644
--- a/plugin/quickfix_auto_open.vim
+++ b/plugin/quickfix_auto_open.vim
@@ -16,5 +16,5 @@ augroup quickfix_auto_open
autocmd QuickFixCmdPost *
\ call quickfix_auto_open#(expand('<amatch>'))
autocmd VimEnter *
- \ doautocmd quickfix_auto_open QuickFixCmdPost
+ \ doautocmd quickfix_auto_open QuickFixCmdPost cfile
augroup END