mirror of
https://github.com/preservim/tagbar.git
synced 2024-11-23 10:35:00 +08:00
Check for existence of qf var before deleting
Otherwise explicit calling of QuickFixCmdPost autocmds without a preceding QuickFixCmdPre will generate an error.
This commit is contained in:
parent
b60d08c468
commit
15f9ad6e88
|
@ -979,7 +979,9 @@ function! s:CreateAutocommands() abort
|
|||
\ s:known_files.rm(fnamemodify(expand('<afile>'), ':p'))
|
||||
|
||||
autocmd QuickFixCmdPre * let s:tagbar_qf_active = 1
|
||||
autocmd QuickFixCmdPost * unlet s:tagbar_qf_active
|
||||
autocmd QuickFixCmdPost * if exists('s:tagbar_qf_active') |
|
||||
\ unlet s:tagbar_qf_active |
|
||||
\ fi
|
||||
|
||||
autocmd VimEnter * call s:CorrectFocusOnStartup()
|
||||
augroup END
|
||||
|
|
Loading…
Reference in New Issue
Block a user