From cd39920abdadb065ea4651dbd0c1f692dd6d555f Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 15 Jan 2019 12:08:53 +0000 Subject: [PATCH] Should save the bg colour when setting it to default, not the fg. --- tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tty.c b/tty.c index df47c972..b0aa190a 100644 --- a/tty.c +++ b/tty.c @@ -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; } } }