From b6c1e1a60961279f4f6031f0247367ca36e521da Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 22 Apr 2021 10:24:57 +0530 Subject: [PATCH] ... --- kitty/rc/focus_tab.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kitty/rc/focus_tab.py b/kitty/rc/focus_tab.py index 145fba408..6f8fd7f18 100644 --- a/kitty/rc/focus_tab.py +++ b/kitty/rc/focus_tab.py @@ -38,9 +38,10 @@ using this option means that you will not be notified of failures. return {'match': opts.match} def response_from_kitty(self, boss: Boss, window: Optional[Window], payload_get: PayloadGetType) -> ResponseType: - tabs = self.tabs_for_match_payload(boss, window, payload_get) - if tabs: - boss.set_active_tab(tabs[0]) + for tab in self.tabs_for_match_payload(boss, window, payload_get): + if tab: + boss.set_active_tab(tab) + break focus_tab = FocusTab()