Match Kitty image sizing and layer order, preserve trailing backgrounds, and add regression coverage.

This commit is contained in:
Michael Grant
2026-10-10 17:51:50 +02:00
parent 7576d49578
commit f988a7bc0b
6 changed files with 381 additions and 47 deletions

View File

@@ -268,6 +268,10 @@ tty_draw_line(struct tty *tty, struct screen *s, u_int px, u_int py, u_int nx,
else
#endif
empty = nx - i;
/* Flush the background before clearing the tail. */
if (empty != 0 && gcp->bg != last.bg)
empty = 0;
} else {
/* Get the current cell. */
grid_view_get_cell(gd, px + i, py, &gc);