Commit 9a7c2c21 authored by mathieui's avatar mathieui

Fix #3338 (cycle tabs with /w foo instead of picking the first)

parent 88903095
......@@ -210,7 +210,10 @@ class CommandCore:
self.core.current_tab_nb = number
matchs = []
for tab in self.core.tabs:
target_tabs = self.core.tabs[self.core.current_tab_nb+1:]
if not target_tabs:
target_tabs = self.core.tabs
for tab in target_tabs:
for tab_name in tab.matching_names():
if tab_name[1] and name in tab_name[1].lower():
matchs.append((tab_name[0], tab))
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