Fix many display problems with floating windows up against the window edge and borders of other windows and many off-by-one errors.

This commit is contained in:
Michael Grant
2025-11-10 23:07:06 +01:00
parent 31d0945059
commit 7194fdca38
2 changed files with 72 additions and 38 deletions

2
tty.c
View File

@@ -2259,7 +2259,7 @@ tty_cmd_cell(struct tty *tty, const struct tty_ctx *ctx)
for (i = 0; i < OVERLAY_MAX_RANGES; i++)
vis += r.nx[i];
if (vis < gcp->data.width ||
vis2 < gcp->data.width) {
vis2 < gcp->data.width) { /* xxxx check visible range */
tty_draw_line(tty, s, s->cx, s->cy, gcp->data.width,
px, py, &ctx->defaults, ctx->palette);
return;