diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2019-01-20 15:57:28 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2019-01-20 15:57:28 +0000 |
commit | fe1f03703267eaead549036ca745ba6f32b23635 (patch) | |
tree | ce8a97a50e45f9b0e5541593fa527fd7c867c73f /usr.bin/tmux | |
parent | b07fc0652428322fd173c202e42d22fd065772ec (diff) |
Should use DECFRA if not default, not if default. From Karl Beldan.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index 919870ae403..75ba0e1dec8 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.312 2019/01/15 12:08:53 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.313 2019/01/20 15:57:27 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -1102,7 +1102,7 @@ tty_clear_area(struct tty *tty, const struct window_pane *wp, u_int py, * background colour isn't default (because it doesn't work * after SGR 0). */ - if (tty->term_type == TTY_VT420 && COLOUR_DEFAULT(bg)) { + if (tty->term_type == TTY_VT420 && !COLOUR_DEFAULT(bg)) { xsnprintf(tmp, sizeof tmp, "\033[32;%u;%u;%u;%u$x", py + 1, px + 1, py + ny, px + nx); tty_puts(tty, tmp); |