mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-17 19:40:27 +01: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user