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