Skip to content

Commit

Permalink
Should save the bg colour when setting it to default, not the fg.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicm committed Jan 15, 2019
1 parent 34c0807 commit cd39920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit cd39920

Please sign in to comment.