Stop /win at the first tab found

This commit is contained in:
mathieui 2017-10-13 00:39:13 +02:00
parent 6626208983
commit bbfb834827

View file

@ -218,6 +218,9 @@ class CommandCore:
for tab_name in tab.matching_names():
if tab_name[1] and name in tab_name[1].lower():
match = tab
break
if match:
break
if match is None:
self.core.previous_tab_nb = prev_nb
return