Skip to content

Commit

Permalink
Fix a regression in the previous release that caused `kitten @ send-t…
Browse files Browse the repository at this point in the history
…ext` with a match parameter to send text twice to the active window

Fixes #7027
  • Loading branch information
kovidgoyal committed Jan 21, 2024
1 parent 01ffbfd commit ec0a449
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ 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`)

0.32.0 [2024-01-19]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
2 changes: 2 additions & 0 deletions kitty/rc/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

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

Expand Down Expand Up @@ -394,6 +395,7 @@ def windows_for_payload(
raise MatchError(payload_get(tab_match_name), 'tabs')
for tab in tabs:
windows += list(tab)
windows = uniq(windows)
return windows

def create_async_responder(self, payload_get: PayloadGetType, window: Optional[Window]) -> AsyncResponder:
Expand Down

0 comments on commit ec0a449

Please sign in to comment.