From 63bc2fb6e8a52b3eca2c46f863ebce22b16c1a7d Mon Sep 17 00:00:00 2001 From: micbou Date: Wed, 5 Jul 2017 04:32:13 +0200 Subject: [PATCH] Stop completion polling on InsertLeave event --- autoload/youcompleteme.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autoload/youcompleteme.vim b/autoload/youcompleteme.vim index fd531fee..dc10868f 100644 --- a/autoload/youcompleteme.vim +++ b/autoload/youcompleteme.vim @@ -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 ||