csi: make sure the ASCII printer function is updated on plain underlines

Otherwise, a sequence like

    \E[4:2;4m  # Enable double-underline, then immediately switch to single

Will switch to the slow printer, and then get stuck there even though
we immediately switch to plain underlines (which don't need the slow
printer).
This commit is contained in:
Daniel Eklöf 2025-12-24 11:33:28 +01:00
parent aa26676c43
commit 4cb17f5ae6
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

6
csi.c
View file

@ -117,9 +117,9 @@ csi_sgr(struct terminal *term)
style > UNDERLINE_SINGLE;
break;
}
term_update_ascii_printer(term);
}
} else
term->bits_affecting_ascii_printer.underline_style = false;
term_update_ascii_printer(term);
break;
}
case 5: term->vt.attrs.blink = true; break;