Clean up image support and add regression tests

This commit is contained in:
Michael Grant
2026-10-04 11:44:00 +01:00
parent 91441d6ef2
commit 90ee6a89cc
31 changed files with 465 additions and 633 deletions

8
tty.c
View File

@@ -585,12 +585,8 @@ tty_update_features(struct tty *tty)
tty_puts(tty, tty_term_string(tty->term, TTYC_ENESC));
/*
* Features might have changed since the first draw during attach, for
* example on a DA response - but only redraw if something actually
* did change, since this is called for every DA answer (which are
* usually confirming what is already known) and a redraw repaints
* from tmux's own grid, discarding anything the pane put on the
* terminal that tmux does not model (e.g. a DCS-passthrough image).
* Redraw only for changed features; repeated DA replies must not erase
* images sent through DCS passthrough.
*/
if (!changed)
return;