diff --git a/docs/changelog.rst b/docs/changelog.rst index 420ef3727..362ed132c 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -54,7 +54,7 @@ Detailed list of changes - 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`) -- Fix a regression in the previous release that caused overriding of existing multi-key mappings to fail (:iss:`7044`) +- Fix a regression in the previous release that caused overriding of existing multi-key mappings to fail (:iss:`7044`, :iss:`7058`) - Wayland+NVIDIA: Do not request an sRGB output buffer as a bug in Wayland causes kitty to not start (:iss:`7021`) diff --git a/kitty/boss.py b/kitty/boss.py index 335e7f69a..7a6babd8c 100644 --- a/kitty/boss.py +++ b/kitty/boss.py @@ -1442,11 +1442,11 @@ def matching_key_actions(self, candidates: Iterable[KeyDefinition]) -> List[KeyD has_sequence_match = True matches.append(x) if has_sequence_match: - matches = [x for x in matches if x.is_sequence] terminal_matches = [x for x in matches if not x.rest] if terminal_matches: matches = [terminal_matches[-1]] else: + matches = [x for x in matches if x.is_sequence] q = matches[-1].options.when_focus_on matches = [x for x in matches if x.options.when_focus_on == q] else: