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:
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
......
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