diff options
author | 2019-03-04 09:29:40 +0000 | |
---|---|---|
committer | 2019-03-04 09:29:40 +0000 | |
commit | 73c0ae662a84f791439c75f52af55eb659e07686 (patch) | |
tree | a22d22b01080473721bcebf5bfab95bfb38d22bb /usr.bin/tmux/tty.c | |
parent | According to RFC 7230 Section 3.2 header field names are (diff) | |
download | wireguard-openbsd-73c0ae662a84f791439c75f52af55eb659e07686.tar.xz wireguard-openbsd-73c0ae662a84f791439c75f52af55eb659e07686.zip |
Don't set client offset if client is not a terminal
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r-- | usr.bin/tmux/tty.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index 75ba0e1dec8..6b2bc3c4907 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.313 2019/01/20 15:57:27 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.314 2019/03/04 09:29:40 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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 && |