mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-06 09:15:57 +02:00
A single key shortcut should override all previous multi-key shortcuts that have that shortcut as a prefix
Fixes #7058
This commit is contained in:
@@ -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`)
|
||||
|
||||
|
||||
@@ -1442,11 +1442,11 @@ class Boss:
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user