Commit f252f66b authored by mathieui's avatar mathieui

Fix a possible traceback in /win with some tabs open

parent 2886d10e
...@@ -212,7 +212,7 @@ class CommandCore: ...@@ -212,7 +212,7 @@ class CommandCore:
matchs = [] matchs = []
for tab in self.core.tabs: for tab in self.core.tabs:
for tab_name in tab.matching_names(): 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)) matchs.append((tab_name[0], tab))
if not matchs: if not matchs:
return return
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment