aboutsummaryrefslogtreecommitdiff
path: root/grid.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-05-12 16:01:14 +0100
committerThomas Adam <thomas@xteddy.org>2017-05-12 16:01:14 +0100
commit20e30593a596056ba412924272040913b7ec2fd4 (patch)
tree6cd4d41624a03ddadd1e05810bb2b2d1a288572c /grid.c
parent7f813dcb6a71b69c06b51a9f28a5319785504e9a (diff)
parentda724fe1c0b71f7aca22632343c94da28f901637 (diff)
downloadrtmux-20e30593a596056ba412924272040913b7ec2fd4.tar.gz
rtmux-20e30593a596056ba412924272040913b7ec2fd4.tar.bz2
rtmux-20e30593a596056ba412924272040913b7ec2fd4.zip
Merge branch 'obsd-master'
Diffstat (limited to 'grid.c')
-rw-r--r--grid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/grid.c b/grid.c
index 25b0d016..4f728dbe 100644
--- a/grid.c
+++ b/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++;