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.
This commit is contained in:
Strahinja Val Markovic 2013-08-12 20:11:41 -07:00
parent 5f9021e3e6
commit d35b39a20c

View File

@ -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