summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2016-09-13 20:00:34 +0200
committermathieui <mathieui@mathieui.net>2016-09-13 20:03:51 +0200
commitf252f66b5093e76bb0c0b7dea2020e4f70da9598 (patch)
treea83e0e454b2ec2789a8fb0af40b44b04055bc0f0
parent2886d10ea97bab789b0679b5a622a18fcb28f123 (diff)
downloadpoezio-f252f66b5093e76bb0c0b7dea2020e4f70da9598.tar.gz
poezio-f252f66b5093e76bb0c0b7dea2020e4f70da9598.tar.bz2
poezio-f252f66b5093e76bb0c0b7dea2020e4f70da9598.tar.xz
poezio-f252f66b5093e76bb0c0b7dea2020e4f70da9598.zip
Fix a possible traceback in /win with some tabs open
-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