Move the background colour to clear with (if any) up as well as the data

when scrolling, redraw problem reported by sthen@.
This commit is contained in:
nicm
2020-04-21 13:48:56 +00:00
parent 9a60d41db4
commit 445dfa8512
2 changed files with 4 additions and 3 deletions

View File

@ -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. */