Avoid a double parse for pending mode

This commit is contained in:
Kovid Goyal
2023-10-30 22:20:29 +05:30
parent a4ca143fc5
commit f42b49e597
3 changed files with 217 additions and 203 deletions

View File

@@ -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))