mirror of
https://github.com/tmux/tmux.git
synced 2025-01-07 16:28:48 +00:00
Don't set client offset if client is not a terminal
This commit is contained in:
parent
fa33603dc1
commit
a870c255c4
3
tty.c
3
tty.c
@ -807,6 +807,9 @@ tty_update_client_offset(struct client *c)
|
|||||||
{
|
{
|
||||||
u_int ox, oy, sx, sy;
|
u_int ox, oy, sx, sy;
|
||||||
|
|
||||||
|
if (~c->flags & CLIENT_TERMINAL)
|
||||||
|
return;
|
||||||
|
|
||||||
c->tty.oflag = tty_window_offset1(&c->tty, &ox, &oy, &sx, &sy);
|
c->tty.oflag = tty_window_offset1(&c->tty, &ox, &oy, &sx, &sy);
|
||||||
if (ox == c->tty.oox &&
|
if (ox == c->tty.oox &&
|
||||||
oy == c->tty.ooy &&
|
oy == c->tty.ooy &&
|
||||||
|
Loading…
Reference in New Issue
Block a user