Doing buffervisit for clang only when clang on

This commit is contained in:
Strahinja Val Markovic 2012-07-23 18:47:01 -07:00
parent 74c363ef60
commit 48d95bcd20

View File

@ -76,7 +76,7 @@ function! s:OnBufferVisit()
call s:SetCompleteFunc()
py identcomp.OnFileEnter()
if pyeval('ycm.ClangAvailableForFile()')
if g:ycm_clang_completion_enabled && pyeval('ycm.ClangAvailableForFile()')
py clangcomp.OnFileEnter()
endif
endfunction