From 57f64dca7b031255f2b82f4523df8555002fa4f1 Mon Sep 17 00:00:00 2001 From: Boris Staletic Date: Thu, 10 Nov 2016 21:24:09 +0100 Subject: [PATCH] Fromating and function rename --- autoload/youcompleteme.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/youcompleteme.vim b/autoload/youcompleteme.vim index eb85b41d..c3063aed 100644 --- a/autoload/youcompleteme.vim +++ b/autoload/youcompleteme.vim @@ -119,15 +119,17 @@ function! youcompleteme#Enable() call s:OnBufferRead() endfunction + function s:DeferredUntilInsertEnter() let s:defer_omnifunc = 0 autocmd! ycm_defer_omnifunc - if s:AllowedToCompleteInCurrentFile() + if s:AllowedToCompleteInCurrentBuffer() call s:SetOmnicompleteFunc() endif endfunction + function! youcompleteme#EnableCursorMovedAutocommands() augroup ycmcompletemecursormove autocmd!