diff options
author | nicm <nicm> | 2017-05-12 13:00:56 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-05-12 13:00:56 +0000 |
commit | 18bab3079228f5d7e85a615f57c12c16f9331568 (patch) | |
tree | c235de8b8231359effb101697b5378e46ce04e9e /grid.c | |
parent | 60f7b05c0c9fbee371dac86229d888aed7b0e7f6 (diff) | |
download | rtmux-18bab3079228f5d7e85a615f57c12c16f9331568.tar.gz rtmux-18bab3079228f5d7e85a615f57c12c16f9331568.tar.bz2 rtmux-18bab3079228f5d7e85a615f57c12c16f9331568.zip |
Scrolling needs to use background colour.
Diffstat (limited to 'grid.c')
-rw-r--r-- | grid.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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++; |