summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2019-01-15 12:08:54 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2019-01-15 12:08:54 +0000
commit9dfb87dd115fe98acd7143968c340bc2abe6ee14 (patch)
treee92310797971c8a025eb1ceb20ba48ea11de0895 /usr.bin
parent492621fb6c862cfd10a3d366740bde778cb5096a (diff)
Should save the bg colour when setting it to default, not the fg.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tmux/tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c
index 24761b71471..919870ae403 100644
--- a/usr.bin/tmux/tty.c
+++ b/usr.bin/tmux/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.311 2018/11/19 13:35:41 nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.312 2019/01/15 12:08:53 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -2240,7 +2240,7 @@ tty_colours(struct tty *tty, const struct grid_cell *gc)
tty_puts(tty, "\033[49m");
else if (tc->bg != 0)
tty_putcode1(tty, TTYC_SETAB, 0);
- tc->bg = gc->fg;
+ tc->bg = gc->bg;
}
}
}