Do not treat cells as empty unless the background colour stays the same.

Fixes invisible clock in clock mode, reported by tb@.
This commit is contained in:
nicm
2026-01-29 09:08:19 +00:00
parent f70150a663
commit 66011fe48b

View File

@@ -240,6 +240,8 @@ tty_draw_line(struct tty *tty, struct screen *s, u_int px, u_int py, u_int nx,
/* Work out the the empty width. */
if (i >= ex)
empty = 1;
else if (gcp->bg != last.bg)
empty = 0;
else
empty = tty_draw_line_get_empty(gcp, nx - i);