Fix a possible traceback in /win with some tabs open

This commit is contained in:
mathieui 2016-09-13 20:00:34 +02:00
parent 2886d10ea9
commit f252f66b50

View file

@ -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