From d35b39a20cde24ade202badcd6e687c29911f759 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Mon, 12 Aug 2013 20:11:41 -0700 Subject: [PATCH] Now parsing file on insert mode leave as well We used to do it on buffer enter and cursor hold. Doing it on insert leave too produces much quicker compilation error feedback when editing C-family code because the user doesn't have to wait for the next cursor hold event. --- autoload/youcompleteme.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/youcompleteme.vim b/autoload/youcompleteme.vim index ae75ee26..ea7bd85e 100644 --- a/autoload/youcompleteme.vim +++ b/autoload/youcompleteme.vim @@ -333,6 +333,7 @@ function! s:OnInsertLeave() let s:omnifunc_mode = 0 call s:UpdateDiagnosticNotifications() + call s:OnFileReadyToParse() py ycm_state.OnInsertLeave() if g:ycm_autoclose_preview_window_after_completion || \ g:ycm_autoclose_preview_window_after_insertion