From 3beb1e454ae206c30e207efdeff8cb1bb332a380 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 27 Oct 2023 21:54:13 +0530 Subject: [PATCH] Fix #6761 --- kitty/rc/send_text.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty/rc/send_text.py b/kitty/rc/send_text.py index 793050f73..bbe32430b 100644 --- a/kitty/rc/send_text.py +++ b/kitty/rc/send_text.py @@ -184,13 +184,13 @@ are sent as is, not interpreted for escapes. windows = [boss.active_window] match = payload_get('match') if match: - windows = list(boss.match_windows(match)) + windows = [w for w in self.windows_for_match_payload(boss, window, payload_get)] if not windows and not sid: raise MatchError(payload_get('match')) mt = payload_get('match_tab') if mt: windows = [] - tabs = tuple(boss.match_tabs(mt)) + tabs = self.tabs_for_match_payload(boss, window, payload_get) if not tabs and not sid: raise MatchError(payload_get('match_tab'), 'tabs') for tab in tabs: