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
parent 057b688fc7
commit 0e6fe5a097

View File

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