summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tty.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2019-03-04 09:29:40 +0000
committernicm <nicm@openbsd.org>2019-03-04 09:29:40 +0000
commit73c0ae662a84f791439c75f52af55eb659e07686 (patch)
treea22d22b01080473721bcebf5bfab95bfb38d22bb /usr.bin/tmux/tty.c
parentAccording to RFC 7230 Section 3.2 header field names are (diff)
downloadwireguard-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.c5
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 &&