From ab9631f045a8efd8629bee57e1d4757786e7c9db Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 21 Jan 2024 08:27:16 +0530 Subject: [PATCH] Better fix --- docs/changelog.rst | 2 +- kitty/rc/base.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index af0ba6e8d..0f337ceac 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -52,7 +52,7 @@ Detailed list of changes - Fix a regression in the previous release that caused `kitten @ launch --cwd=current` to fail over SSH (:iss:`7028`) -- Fix a regression in the previous release that caused `kitten @ send-text` with a match parameter to send text twice to the active window (:iss:`7027`) +- Fix a regression in the previous release that caused `kitten @ send-text` with a match tab parameter to send text twice to the active window (:iss:`7027`) 0.32.0 [2024-01-19] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/kitty/rc/base.py b/kitty/rc/base.py index 4ee988880..08a382aa3 100644 --- a/kitty/rc/base.py +++ b/kitty/rc/base.py @@ -8,7 +8,6 @@ from kitty.cli import CompletionSpec, get_defaults_from_seq, parse_args, parse_option_spec from kitty.cli_stub import RCOptions as R -from kitty.conf.utils import uniq from kitty.constants import appname, list_kitty_resources, running_in_kitty from kitty.types import AsyncResponse @@ -393,9 +392,9 @@ def windows_for_payload( tabs = tuple(boss.match_tabs(payload_get(tab_match_name))) if not tabs: raise MatchError(payload_get(tab_match_name), 'tabs') + windows = [] for tab in tabs: windows += list(tab) - windows = uniq(windows) return windows def create_async_responder(self, payload_get: PayloadGetType, window: Optional[Window]) -> AsyncResponder: