summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2020-04-18 15:22:06 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2020-04-18 15:22:06 +0000
commitdb43e234487af03e48ca325aceb2e128e287fb47 (patch)
treeec2a843dcb4dd70cb8daa37dbff9ed48eef597a9
parent2f0239018008f7f86ef3657aba3cc8d2dbde7e1c (diff)
Reset background colour on scrolled line.
-rw-r--r--usr.bin/tmux/screen-write.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/screen-write.c b/usr.bin/tmux/screen-write.c
index eeee370a604..980393c05bc 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.170 2020/04/18 15:12:28 nicm Exp $ */
+/* $OpenBSD: screen-write.c,v 1.171 2020/04/18 15:22:05 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1381,6 +1381,7 @@ screen_write_collect_scroll(struct screen_write_ctx *ctx)
ctx->list[y].data = cl->data;
}
ctx->list[s->rlower].data = saved;
+ ctx->list[s->rlower].bg = 1 + 8;
}
/* Flush collected lines. */