From f58d9d607e70420be0a2f099d034c5422673c065 Mon Sep 17 00:00:00 2001 From: micbou Date: Wed, 23 Jan 2019 00:19:07 +0100 Subject: [PATCH] Do not call OnCompleteDone on blacklisted filetypes --- autoload/youcompleteme.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoload/youcompleteme.vim b/autoload/youcompleteme.vim index 142ef895..3526aad4 100644 --- a/autoload/youcompleteme.vim +++ b/autoload/youcompleteme.vim @@ -519,6 +519,10 @@ endfunction function! s:OnCompleteDone() + if !s:AllowedToCompleteInCurrentBuffer() + return + endif + exec s:python_command "ycm_state.OnCompleteDone()" endfunction