Convert cursor position back to pane coordinates for tty_cmd_cell.

This commit is contained in:
nicm
2026-06-15 14:56:30 +00:00
committed by Nicholas Marriott
parent f98aaf544d
commit 9cf8de099c

View File

@@ -2643,7 +2643,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);
}
}