diff --git a/python/completers/cpp/clang_completer.py b/python/completers/cpp/clang_completer.py index 456f80e3..4fc93a1c 100644 --- a/python/completers/cpp/clang_completer.py +++ b/python/completers/cpp/clang_completer.py @@ -246,5 +246,9 @@ def DiagnosticsToDiagStructure( diagnostics ): def ClangAvailableForBuffer( buffer_object ): - filetype = vim.eval( 'getbufvar({0}, "&ft")'.format( buffer_object.number ) ) - return filetype in CLANG_FILETYPES + filetypes = vim.eval( 'getbufvar({0}, "&ft")'.format( buffer_object.number ) ) + supported_fts = [ft for ft in filetypes.split('.') if ft in CLANG_FILETYPES] + if supported_fts: + return True + else: + return False