aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authornicm <nicm>2020-12-03 07:12:11 +0000
committernicm <nicm>2020-12-03 07:12:11 +0000
commitfd451aa7962f399250fd166f207451fcf4b9cb94 (patch)
treeb53be085bcb45f9a88b478fe00c6449f98c1a0c5 /tty.c
parentf0c1233d4f97b499dd51688b089ad7c485c14b2a (diff)
downloadrtmux-fd451aa7962f399250fd166f207451fcf4b9cb94.tar.gz
rtmux-fd451aa7962f399250fd166f207451fcf4b9cb94.tar.bz2
rtmux-fd451aa7962f399250fd166f207451fcf4b9cb94.zip
Redraw any visible modes when status line changes so that formats like
the pane title are updated. GitHub issue 2487. Also a man page fix from jmc.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tty.c b/tty.c
index 777b639b..fac7a99e 100644
--- a/tty.c
+++ b/tty.c
@@ -2447,7 +2447,7 @@ tty_check_fg(struct tty *tty, int *palette, struct grid_cell *gc)
/* Is this a 256-colour colour? */
if (gc->fg & COLOUR_FLAG_256) {
/* And not a 256 colour mode? */
- if (colours != 256) {
+ if (colours < 256) {
gc->fg = colour_256to16(gc->fg);
if (gc->fg & 8) {
gc->fg &= 7;
@@ -2500,7 +2500,7 @@ tty_check_bg(struct tty *tty, int *palette, struct grid_cell *gc)
* palette. Bold background doesn't exist portably, so just
* discard the bold bit if set.
*/
- if (colours != 256) {
+ if (colours < 256) {
gc->bg = colour_256to16(gc->bg);
if (gc->bg & 8) {
gc->bg &= 7;