This commit is contained in:
Kovid Goyal 2024-01-26 20:07:55 +05:30
parent c95fc3689b
commit 4c46d2bc95
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -611,9 +611,12 @@ def __call__(self, *keys: str):
self.ae(len(tm.active_window.key_seqs), 1)
# a single multi-key mapping should not prematurely match
tm = TM('map alt+1>2>3')
tm = TM('map alt+1>2>3 new_window')
self.ae(tm('alt+1', '2'), [True, True])
af(tm.actions)
tm = TM('map alt+1>2>3 new_window')
self.ae(tm('alt+1', '2', '3'), [True, True, True])
self.ae(tm.actions, ['new_window'])
# changing a multi key mapping
tm = TM('map kitty_mod+p>f new_window')