diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-05-02 16:17:44 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-05-02 16:17:44 +0100 |
commit | af69289e0ea2b4af80206bcde0574358fa1b9169 (patch) | |
tree | 6a66f17f4912c48f0160ceb5b84aa936fe2eb391 /screen-write.c | |
parent | cb1131a29481246c9cb9b68cb8591cc747fcdd9a (diff) | |
download | rtmux-af69289e0ea2b4af80206bcde0574358fa1b9169.tar.gz rtmux-af69289e0ea2b4af80206bcde0574358fa1b9169.tar.bz2 rtmux-af69289e0ea2b4af80206bcde0574358fa1b9169.zip |
Clamping to area needs to use the offset without the status line, since that is
where the window offsets are based.
Diffstat (limited to 'screen-write.c')
-rw-r--r-- | screen-write.c | 5 |
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); |