summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tty.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2019-01-15 12:08:53 +0000
committernicm <nicm@openbsd.org>2019-01-15 12:08:53 +0000
commitdbbe8bc8457448b560502b73c08a4e728e18be8e (patch)
tree27e07a8d357ed8ad3e7ae278e7b3266ed68a0c74 /usr.bin/tmux/tty.c
parentStop processing "no data" frames in ieee80211_input() before decryption. (diff)
downloadwireguard-openbsd-dbbe8bc8457448b560502b73c08a4e728e18be8e.tar.xz
wireguard-openbsd-dbbe8bc8457448b560502b73c08a4e728e18be8e.zip
Should save the bg colour when setting it to default, not the fg.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-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;
}
}
}