Actually stopping compilation when no support

Previously we would just emit an error message _and continue_. The "and
continue" part was an embarrassing oversight.
This commit is contained in:
Strahinja Val Markovic 2013-02-12 20:30:14 -08:00
parent 21dac46ecc
commit bdacf4dc36

View File

@ -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."