mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Scrolling needs to use background colour.
This commit is contained in:
4
grid.c
4
grid.c
@ -284,7 +284,7 @@ grid_clear_history(struct grid *gd)
|
||||
|
||||
/* Scroll a region up, moving the top line into the history. */
|
||||
void
|
||||
grid_scroll_history_region(struct grid *gd, u_int upper, u_int lower)
|
||||
grid_scroll_history_region(struct grid *gd, u_int upper, u_int lower, u_int bg)
|
||||
{
|
||||
struct grid_line *gl_history, *gl_upper, *gl_lower;
|
||||
u_int yy;
|
||||
@ -309,7 +309,7 @@ grid_scroll_history_region(struct grid *gd, u_int upper, u_int lower)
|
||||
|
||||
/* Then move the region up and clear the bottom line. */
|
||||
memmove(gl_upper, gl_upper + 1, (lower - upper) * sizeof *gl_upper);
|
||||
memset(gl_lower, 0, sizeof *gl_lower);
|
||||
grid_empty_line(gd, lower, bg);
|
||||
|
||||
/* Move the history offset down over the line. */
|
||||
gd->hscrolled++;
|
||||
|
Reference in New Issue
Block a user