diff options
author | mathieui <mathieui@mathieui.net> | 2016-09-13 20:00:34 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2016-09-13 20:03:51 +0200 |
commit | f252f66b5093e76bb0c0b7dea2020e4f70da9598 (patch) | |
tree | a83e0e454b2ec2789a8fb0af40b44b04055bc0f0 | |
parent | 2886d10ea97bab789b0679b5a622a18fcb28f123 (diff) | |
download | poezio-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.py | 2 |
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 |