aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tty.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tty.c b/tty.c
index d3db798f..a198b89c 100644
--- a/tty.c
+++ b/tty.c
@@ -807,6 +807,9 @@ tty_update_client_offset(struct client *c)
{
u_int ox, oy, sx, sy;
+ if (~c->flags & CLIENT_TERMINAL)
+ return;
+
c->tty.oflag = tty_window_offset1(&c->tty, &ox, &oy, &sx, &sy);
if (ox == c->tty.oox &&
oy == c->tty.ooy &&