From 77947accf3a0762647263de19357056e22b40f98 Mon Sep 17 00:00:00 2001 From: Andrea Cedraro Date: Fri, 12 Jun 2015 12:59:34 +0200 Subject: [PATCH] Disable completion if any of current filetypes is disable Fixes #1531 --- python/ycm/youcompleteme.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ycm/youcompleteme.py b/python/ycm/youcompleteme.py index 54da2cd7..58cdb2e1 100644 --- a/python/ycm/youcompleteme.py +++ b/python/ycm/youcompleteme.py @@ -341,7 +341,7 @@ class YouCompleteMe( object ): if '*' in filetype_to_disable: return False 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 ):