summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poezio/core/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/poezio/core/commands.py b/poezio/core/commands.py
index 1790cd89..d44a401e 100644
--- a/poezio/core/commands.py
+++ b/poezio/core/commands.py
@@ -212,7 +212,7 @@ class CommandCore:
matchs = []
for tab in self.core.tabs:
for tab_name in tab.matching_names():
- if name.lower() in tab_name[1].lower():
+ if tab_name[1] and name.lower() in tab_name[1].lower():
matchs.append((tab_name[0], tab))
if not matchs:
return