Merge pull request #1532 from vheon/fix-disable-filetype

Disable completion if any of current filetypes is disable
This commit is contained in:
Val Markovic 2015-06-12 10:02:18 -07:00
commit d77ef96ebc

View File

@ -341,7 +341,7 @@ class YouCompleteMe( object ):
if '*' in filetype_to_disable: if '*' in filetype_to_disable:
return False return False
else: else:
return not all([ x in filetype_to_disable for x in filetypes ]) return not any([ x in filetype_to_disable for x in filetypes ])
def _AddSyntaxDataIfNeeded( self, extra_data ): def _AddSyntaxDataIfNeeded( self, extra_data ):