mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-23 16:58:09 +02:00
Avoid a double parse for pending mode
This commit is contained in:
@@ -917,10 +917,14 @@ class TestScreen(BaseTest):
|
||||
if use_pending_mode:
|
||||
parse_bytes(s, b'\033[?2026h')
|
||||
send(q)
|
||||
del q
|
||||
if use_pending_mode:
|
||||
self.ae(c.cc_buf, [])
|
||||
parse_bytes(s, b'\033[?2026l')
|
||||
self.ae(c.cc_buf, list(expected))
|
||||
try:
|
||||
self.ae(c.cc_buf, list(expected))
|
||||
finally:
|
||||
del expected
|
||||
|
||||
for use_pending_mode in (False, True):
|
||||
t('XYZ', use_pending_mode, ('p;XYZ', False))
|
||||
|
||||
Reference in New Issue
Block a user