Correct redrawing of wide characters when overwritten. Reported by Jake

Stewart in GitHub issue 4737.
This commit is contained in:
nicm
2026-01-07 18:29:15 +00:00
parent 583f12ea71
commit e2afaaea75
2 changed files with 39 additions and 7 deletions

6
tty.c
View File

@@ -2112,6 +2112,12 @@ tty_cmd_cell(struct tty *tty, const struct tty_ctx *ctx)
(gcp->data.width == 1 && !tty_check_overlay(tty, px, py)))
return;
if (ctx->num == 2) {
tty_draw_line(tty, s, 0, s->cy, screen_size_x(s),
ctx->xoff - ctx->wox, py, &ctx->defaults, ctx->palette);
return;
}
/* Handle partially obstructed wide characters. */
if (gcp->data.width > 1) {
tty_check_overlay_range(tty, px, py, gcp->data.width, &r);