Fix check condition for setting omnifunction

This commit is contained in:
Andrea Cedraro 2015-06-18 14:08:06 +02:00
parent fbdf7cc85e
commit 7bc05a37b5

View File

@ -508,7 +508,7 @@ function! s:OnInsertEnter()
return
endif
if get( b:, 'ycm_omnicomplete', 0 )
if !get( b:, 'ycm_omnicomplete', 0 )
let b:ycm_omnicomplete = 1
call s:SetOmnicompleteFunc()
endif