This commit is contained in:
pagedown 2022-01-16 04:14:59 +08:00
parent 30b81d98f1
commit ce6f99044e
No known key found for this signature in database
GPG Key ID: E921CF18AC8FF6EB

View File

@ -1043,11 +1043,11 @@ class TestScreen(BaseTest):
# resize
# get last cmd output with continued output mark
draw_prompt('3'), draw_output(1, 'long_line'), draw_output(2, 'l')
draw_prompt('3'), draw_output(1, 'long_line'), draw_output(2, 'l', False)
s.resize(4, 5)
s.scroll_to_prompt(-4)
self.ae(str(s.visual_line(0)), '$ 0')
self.ae(lco(), '0l\n1l')
self.ae(lco(), '0long_line\n0l\n1l')
# last visited cmd output
self.ae(lvco(), '0\n1\n2')