mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Do not downgrade styled underscores to standard underscore if the
terminal does not support them, this matches what would happen if the application tried to use them on a terminal without support.
This commit is contained in:
3
tty.c
3
tty.c
@ -2634,8 +2634,7 @@ tty_attributes(struct tty *tty, const struct grid_cell *gc,
|
||||
if (changed & GRID_ATTR_ITALICS)
|
||||
tty_set_italics(tty);
|
||||
if (changed & GRID_ATTR_ALL_UNDERSCORE) {
|
||||
if ((changed & GRID_ATTR_UNDERSCORE) ||
|
||||
!tty_term_has(tty->term, TTYC_SMULX))
|
||||
if (changed & GRID_ATTR_UNDERSCORE)
|
||||
tty_putcode(tty, TTYC_SMUL);
|
||||
else if (changed & GRID_ATTR_UNDERSCORE_2)
|
||||
tty_putcode_i(tty, TTYC_SMULX, 2);
|
||||
|
Reference in New Issue
Block a user