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