Do not use bright when emulating 256 colours on an 8 colour terminal

because it is also bold on some terminals. GitHub issue 1914.
pull/1920/head
nicm 2019-09-19 08:56:37 +00:00
parent 1ee40307b5
commit d018477359
1 changed files with 1 additions and 4 deletions

5
tty.c
View File

@ -2374,10 +2374,7 @@ tty_check_fg(struct tty *tty, struct window_pane *wp, struct grid_cell *gc)
gc->fg &= 7;
if (colours >= 16)
gc->fg += 90;
else
gc->attr |= GRID_ATTR_BRIGHT;
} else
gc->attr &= ~GRID_ATTR_BRIGHT;
}
}
return;
}