aboutsummaryrefslogtreecommitdiff
path: root/screen-write.c
diff options
context:
space:
mode:
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/screen-write.c b/screen-write.c
index c7996ec9..909b8531 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -136,8 +136,9 @@ screen_write_set_client_cb(struct tty_ctx *ttyctx, struct client *c)
ttyctx->bigger = tty_window_offset(&c->tty, &ttyctx->wox, &ttyctx->woy,
&ttyctx->wsx, &ttyctx->wsy);
- ttyctx->xoff = wp->xoff;
- ttyctx->yoff = wp->yoff;
+ ttyctx->xoff = ttyctx->rxoff = wp->xoff;
+ ttyctx->yoff = ttyctx->ryoff = wp->yoff;
+
if (status_at_line(c) == 0)
ttyctx->yoff += status_line_size(c);