This commit is contained in:
Kovid Goyal 2024-12-20 19:12:41 +05:30
parent bfea21fe39
commit 0a28521677
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -148,7 +148,7 @@ def matching_key_actions(self, candidates: Iterable[KeyDefinition]) -> list[KeyD
matches = matches[last_terminal_idx+1:]
q = matches[-1].options.when_focus_on
matches = [x for x in matches if x.options.when_focus_on == q]
else:
elif matches:
matches = [matches[-1]]
return matches