Don't set client offset if client is not a terminal

pull/1620/head
nicm 2019-03-04 09:29:40 +00:00
parent fa33603dc1
commit a870c255c4
1 changed files with 3 additions and 0 deletions

3
tty.c
View File

@ -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 &&