There is no need to clear every line entirely before drawing to it, this

means moving the cursor and messes up wrapping. Better to just clear the
sections that aren't written over. GitHub issue 2537.
This commit is contained in:
nicm
2021-01-18 10:27:54 +00:00
parent 71c590a37f
commit 91d112bf12
4 changed files with 26 additions and 21 deletions

1
grid.c
View File

@ -698,7 +698,6 @@ grid_move_lines(struct grid *gd, u_int dy, u_int py, u_int ny, u_int bg)
gd->linedata[py - 1].flags &= ~GRID_LINE_WRAPPED;
}
/* Move a group of cells. */
void
grid_move_cells(struct grid *gd, u_int dx, u_int px, u_int py, u_int nx,