aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authornicm <nicm>2019-01-20 15:57:27 +0000
committernicm <nicm>2019-01-20 15:57:27 +0000
commit2ea22fce5e5904720220962aaef65cc3a3a94152 (patch)
treed3018d7220e1e457561970cb0790596fae107d10 /tty.c
parentcd39920abdadb065ea4651dbd0c1f692dd6d555f (diff)
downloadrtmux-2ea22fce5e5904720220962aaef65cc3a3a94152.tar.gz
rtmux-2ea22fce5e5904720220962aaef65cc3a3a94152.tar.bz2
rtmux-2ea22fce5e5904720220962aaef65cc3a3a94152.zip
Should use DECFRA if not default, not if default. From Karl Beldan.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tty.c b/tty.c
index b0aa190a..d3db798f 100644
--- a/tty.c
+++ b/tty.c
@@ -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);