From 0e6fe5a09786faf4c79b67c6eb48425c47e9c018 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 15 Jun 2026 14:56:30 +0000 Subject: [PATCH] Convert cursor position back to pane coordinates for tty_cmd_cell. --- screen-write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screen-write.c b/screen-write.c index fbef8320..ff1a713f 100644 --- a/screen-write.c +++ b/screen-write.c @@ -2587,7 +2587,7 @@ screen_write_cell(struct screen_write_ctx *ctx, const struct grid_cell *gc) if (ri->nx == 0) continue; for (n = 0; n < ri->nx; n++) { - ttyctx.ocx = ri->px + n; + ttyctx.ocx = (int)ri->px - xoff + (int)n; tty_write(tty_cmd_cell, &ttyctx); } }