Typing after <c-space> in g:ycm_auto_trigger works

We'd show the user the menu, but then we'd hide it as soon as the user tried to
type to filter the candidates.

Fixes #704
This commit is contained in:
Strahinja Val Markovic 2013-12-03 12:55:05 -08:00
parent aeb2c5c227
commit 6c3a48be7a

View File

@ -367,7 +367,7 @@ function! s:OnCursorMovedInsertMode()
call s:ClosePreviewWindowIfNeeded()
endif
if g:ycm_auto_trigger
if g:ycm_auto_trigger || s:omnifunc_mode
call s:InvokeCompletion()
endif
endfunction