Scrollback filling should happen after cursor position is finalized

This commit is contained in:
Kovid Goyal
2021-03-17 21:59:11 +05:30
parent a4d9d948ab
commit 0f3ff4e2d9
3 changed files with 67 additions and 68 deletions

View File

@@ -91,14 +91,10 @@ class BaseTest(TestCase):
options = Options(merge_configs(defaults._asdict(), final_options))
set_options(options)
def create_screen(self, cols=5, lines=5, scrollback=5, cell_width=10, cell_height=20, options=None, content=()):
def create_screen(self, cols=5, lines=5, scrollback=5, cell_width=10, cell_height=20, options=None):
self.set_options(options)
c = Callbacks()
s = Screen(c, lines, cols, scrollback, cell_width, cell_height, 0, c)
for content_line in content:
s.draw(content_line)
s.linefeed()
s.carriage_return()
return s
def assertEqualAttributes(self, c1, c2):