tui: Fix cursor motion clear screen bug visible on line #1 in redraws.

The clear_screen capability moves the cursor position.
This needs to be accounted for.
This commit is contained in:
Jonathan de Boyne Pollard 2017-05-23 16:55:22 +01:00
parent d077a161ee
commit ede4d620de

View File

@ -543,6 +543,7 @@ static void clear_region(UI *ui, int top, int bot, int left, int right)
if (bot == ui->height - 1) {
if (top == 0) {
unibi_out(ui, unibi_clear_screen);
ugrid_goto(&data->grid, top, left);
} else {
cursor_goto(ui, top, 0);
unibi_out(ui, unibi_clr_eos);