mirror of
https://github.com/prabirshrestha/asyncomplete.vim.git
synced 2025-12-14 20:35:41 +01:00
Only warn about missing timers functionality once (#181)
plugin/asyncomplete.vim sets up an autocmd to invoke asyncomplete#enable_for_buffer() for every BufEnter. If we don't clear this autocmd, then it will try to call that function, which will try to source the autoload file, which outputs the error again. Clearing that autocmd group stops the cycle and limits the number of warnings to one.
This commit is contained in:
@@ -19,6 +19,8 @@ if !has('timers')
|
||||
else
|
||||
call asyncomplete#log('vim compiled with timers required.')
|
||||
endif
|
||||
" Clear augroup so this message is only displayed once.
|
||||
au! asyncomplete_enable *
|
||||
finish
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user