Stop completion polling on InsertLeave event

This commit is contained in:
micbou 2017-07-05 04:32:13 +02:00
parent 25a2e3120c
commit 63bc2fb6e8
No known key found for this signature in database
GPG Key ID: C7E8FD1F3BDA1E05

View File

@ -615,8 +615,10 @@ function! s:OnInsertLeave()
return
endif
call timer_stop( s:pollers.completion.id )
let s:force_semantic = 0
let s:completion = s:default_completion
call s:OnFileReadyToParse()
exec s:python_command "ycm_state.OnInsertLeave()"
if g:ycm_autoclose_preview_window_after_completion ||