From 7bc05a37b5e74de717ff058417baa32d56c4cdfc Mon Sep 17 00:00:00 2001 From: Andrea Cedraro Date: Thu, 18 Jun 2015 14:08:06 +0200 Subject: [PATCH] Fix check condition for setting omnifunction --- autoload/youcompleteme.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/youcompleteme.vim b/autoload/youcompleteme.vim index 1f8a6a15..c4710eb2 100644 --- a/autoload/youcompleteme.vim +++ b/autoload/youcompleteme.vim @@ -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