summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2017-04-18 15:27:47 +0000
committernicm <nicm@openbsd.org>2017-04-18 15:27:47 +0000
commitf53c2ba90ca25353ec9fd73a8a3c643d488dd6b1 (patch)
tree37b1d1069eae8322c18bd17f4c2a7a121991c0ea
parentDelete the undocumented and unimplemented man(1) -i (interactive (diff)
downloadwireguard-openbsd-f53c2ba90ca25353ec9fd73a8a3c643d488dd6b1.tar.xz
wireguard-openbsd-f53c2ba90ca25353ec9fd73a8a3c643d488dd6b1.zip
Do not check for BCE for a background colour that isn't needed, use
colour 8 instead.
-rw-r--r--usr.bin/tmux/tty.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c
index 36e39955680..c489edcbffd 100644
--- a/usr.bin/tmux/tty.c
+++ b/usr.bin/tmux/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.261 2017/04/17 08:10:44 nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.262 2017/04/18 15:27:47 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -880,7 +880,7 @@ tty_cmd_clearcharacter(struct tty *tty, const struct tty_ctx *ctx)
tty_cursor_pane(tty, ctx, ctx->ocx, ctx->ocy);
if (tty_term_has(tty->term, TTYC_ECH) &&
- !tty_fake_bce(tty, ctx->wp, ctx->bg))
+ !tty_fake_bce(tty, ctx->wp, 8))
tty_putcode1(tty, TTYC_ECH, ctx->num);
else
tty_repeat_space(tty, ctx->num);
@@ -989,7 +989,7 @@ tty_cmd_reverseindex(struct tty *tty, const struct tty_ctx *ctx)
return;
if (!tty_pane_full_width(tty, ctx) ||
- tty_fake_bce(tty, ctx->wp, ctx->bg) ||
+ tty_fake_bce(tty, ctx->wp, 8) ||
!tty_term_has(tty->term, TTYC_CSR) ||
!tty_term_has(tty->term, TTYC_RI)) {
tty_redraw_region(tty, ctx);
@@ -1014,7 +1014,7 @@ tty_cmd_linefeed(struct tty *tty, const struct tty_ctx *ctx)
return;
if ((!tty_pane_full_width(tty, ctx) && !tty_use_margin(tty)) ||
- tty_fake_bce(tty, wp, ctx->bg) ||
+ tty_fake_bce(tty, wp, 8) ||
!tty_term_has(tty->term, TTYC_CSR)) {
tty_redraw_region(tty, ctx);
return;
@@ -1045,7 +1045,7 @@ tty_cmd_scrollup(struct tty *tty, const struct tty_ctx *ctx)
u_int i;
if ((!tty_pane_full_width(tty, ctx) && !tty_use_margin(tty)) ||
- tty_fake_bce(tty, wp, ctx->bg) ||
+ tty_fake_bce(tty, wp, 8) ||
!tty_term_has(tty->term, TTYC_CSR)) {
tty_redraw_region(tty, ctx);
return;