Should save the bg colour when setting it to default, not the fg.

pull/1589/head
nicm 2019-01-15 12:08:53 +00:00
parent 34c0807be6
commit cd39920abd
1 changed files with 1 additions and 1 deletions

2
tty.c
View File

@ -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;
}
}
}