mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-27 03:11:46 +00:00
...
This commit is contained in:
parent
c76f75a154
commit
0dfe89a817
1 changed files with 6 additions and 2 deletions
|
|
@ -1443,8 +1443,12 @@ class Boss:
|
|||
matches.append(x)
|
||||
if has_sequence_match:
|
||||
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]
|
||||
terminal_matches = [x for x in matches if not x.rest]
|
||||
if terminal_matches:
|
||||
matches = [terminal_matches[-1]]
|
||||
else:
|
||||
q = matches[-1].options.when_focus_on
|
||||
matches = [x for x in matches if x.options.when_focus_on == q]
|
||||
else:
|
||||
matches = [matches[-1]]
|
||||
return matches
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue