summaryrefslogtreecommitdiffstats
path: root/tty.c
diff options
context:
space:
mode:
authornicm <nicm>2019-01-15 12:08:53 +0000
committernicm <nicm>2019-01-15 12:08:53 +0000
commitcd39920abdadb065ea4651dbd0c1f692dd6d555f (patch)
treedca1c5fd0a56e7b313a7de9d3f21e39ee470853a /tty.c
parent34c0807be6add421bc4624d498adf9f55d00a120 (diff)
Should save the bg colour when setting it to default, not the fg.
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 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;
}
}
}