diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2025-12-24 10:33:28 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2025-12-24 10:33:28 +0000 |
| commit | 4cb17f5ae65e129765794986d36fbfc33c0c65bc (patch) | |
| tree | c62f4c06d8131f93fe85edc1c3b92f6f00393bc7 | |
| parent | builtin terminfo: add custom 'query-os-name' (diff) | |
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).
| -rw-r--r-- | csi.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |
