summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/window.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2017-06-28 11:36:39 +0000
committernicm <nicm@openbsd.org>2017-06-28 11:36:39 +0000
commit0f99bcbc1eb53298abbdf425786417b890b41737 (patch)
tree8e6c56439570239e80c0c2a0d58427ed73900580 /usr.bin/tmux/window.c
parentwhitespace fixes, from Rob Pierce and me (diff)
downloadwireguard-openbsd-0f99bcbc1eb53298abbdf425786417b890b41737.tar.xz
wireguard-openbsd-0f99bcbc1eb53298abbdf425786417b890b41737.zip
Apply the xterm key flag when needed for send-keys, fixes problem
reported by Franky Spamschleuder.
Diffstat (limited to 'usr.bin/tmux/window.c')
-rw-r--r--usr.bin/tmux/window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c
index a890801a498..9330bbcd31d 100644
--- a/usr.bin/tmux/window.c
+++ b/usr.bin/tmux/window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window.c,v 1.198 2017/06/04 09:02:36 nicm Exp $ */
+/* $OpenBSD: window.c,v 1.199 2017/06/28 11:36:40 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1226,7 +1226,7 @@ window_pane_key(struct window_pane *wp, struct client *c, struct session *s,
if (wp->mode != NULL) {
wp->modelast = time(NULL);
if (wp->mode->key != NULL)
- wp->mode->key(wp, c, s, key, m);
+ wp->mode->key(wp, c, s, (key & ~KEYC_XTERM), m);
return;
}