aboutsummaryrefslogtreecommitdiff
path: root/screen-write.c
diff options
context:
space:
mode:
authornicm <nicm>2020-04-21 13:48:56 +0000
committernicm <nicm>2020-04-21 13:48:56 +0000
commit445dfa8512b3b5552a444dd03958cdec3f968f83 (patch)
tree55d9683b0c2e105c4987f96416ed4081cee8f9e0 /screen-write.c
parent9a60d41db4da149275aecadee24d089af1db9ecb (diff)
downloadrtmux-445dfa8512b3b5552a444dd03958cdec3f968f83.tar.gz
rtmux-445dfa8512b3b5552a444dd03958cdec3f968f83.tar.bz2
rtmux-445dfa8512b3b5552a444dd03958cdec3f968f83.zip
Move the background colour to clear with (if any) up as well as the data
when scrolling, redraw problem reported by sthen@.
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/screen-write.c b/screen-write.c
index 98a4a701..afa1e96a 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -1372,10 +1372,11 @@ screen_write_collect_scroll(struct screen_write_ctx *ctx)
for (y = s->rupper; y < s->rlower; y++) {
cl = &ctx->s->write_list[y + 1];
TAILQ_CONCAT(&ctx->s->write_list[y].items, &cl->items, entry);
+ ctx->s->write_list[y].bg = cl->bg;
ctx->s->write_list[y].data = cl->data;
}
- ctx->s->write_list[s->rlower].data = saved;
ctx->s->write_list[s->rlower].bg = 1 + 8;
+ ctx->s->write_list[s->rlower].data = saved;
}
/* Flush collected lines. */