Skip to content

Commit

Permalink
Fix #6761
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Oct 27, 2023
1 parent c174c3c commit 3beb1e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kitty/rc/send_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,13 @@ def response_from_kitty(self, boss: Boss, window: Optional[Window], payload_get:
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:
Expand Down

0 comments on commit 3beb1e4

Please sign in to comment.