From bdacf4dc36e757c91b7350c12796a0329c814810 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Tue, 12 Feb 2013 20:30:14 -0800 Subject: [PATCH] Actually stopping compilation when no support Previously we would just emit an error message _and continue_. The "and continue" part was an embarrassing oversight. --- autoload/youcompleteme.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/youcompleteme.vim b/autoload/youcompleteme.vim index 52aaf294..8af91e75 100644 --- a/autoload/youcompleteme.vim +++ b/autoload/youcompleteme.vim @@ -475,8 +475,9 @@ command! YcmDebugInfo call s:DebugInfo() function! s:ForceCompile() if !pyeval( 'ycm_state.NativeFiletypeCompletionUsable()' ) - echom "Filetype completion not supported for current file, " + echom "Native filetype completion not supported for current file, " \ . "cannot force recompilation." + return endif echom "Forcing compilation, this will block Vim until done."