Properly sanitize pagerhist when returning as plain text

This commit is contained in:
Kovid Goyal 2022-02-15 22:11:57 +05:30
parent 53716c084b
commit 711f8b024e
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 9 additions and 5 deletions

View file

@ -1085,4 +1085,4 @@ class TestScreen(BaseTest):
s = self.create_screen()
draw_prompt('p1')
draw_output(30)
self.ae(tuple(map(int, lco()[len('\x1b]133;C\x1b\\'):].split())), tuple(range(0, 30)))
self.ae(tuple(map(int, lco().split())), tuple(range(0, 30)))