summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/screen-write.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-04-21 13:48:56 +0000
committernicm <nicm@openbsd.org>2020-04-21 13:48:56 +0000
commit208fe07f8796d86f492a6e4194e6e83aad98bbfd (patch)
treea2c646ed24a0de92724d41a397c15940f25c0720 /usr.bin/tmux/screen-write.c
parentSend broadcast packets to INADDR_BROADCAST, not INADDR_ANY. (diff)
downloadwireguard-openbsd-208fe07f8796d86f492a6e4194e6e83aad98bbfd.tar.xz
wireguard-openbsd-208fe07f8796d86f492a6e4194e6e83aad98bbfd.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 'usr.bin/tmux/screen-write.c')
-rw-r--r--usr.bin/tmux/screen-write.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/screen-write.c b/usr.bin/tmux/screen-write.c
index 7fdccbddf6e..f553bbee147 100644
--- a/usr.bin/tmux/screen-write.c
+++ b/usr.bin/tmux/screen-write.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: screen-write.c,v 1.174 2020/04/20 15:49:05 nicm Exp $ */
+/* $OpenBSD: screen-write.c,v 1.175 2020/04/21 13:48:56 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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. */