summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-send-keys.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-05-16 16:32:21 +0000
committernicm <nicm@openbsd.org>2020-05-16 16:32:21 +0000
commitf1c69fe123d2d8f5a5ddc105a771642c954c79d9 (patch)
treed928d4a47d7651d7a1c00d39fc7995c6bc4cddfa /usr.bin/tmux/cmd-send-keys.c
parentxterm-keys has been on by default for five years and all other modern (diff)
downloadwireguard-openbsd-f1c69fe123d2d8f5a5ddc105a771642c954c79d9.tar.xz
wireguard-openbsd-f1c69fe123d2d8f5a5ddc105a771642c954c79d9.zip
Recognise extended key sequences on input (both the forms xterm offers).
Diffstat (limited to 'usr.bin/tmux/cmd-send-keys.c')
-rw-r--r--usr.bin/tmux/cmd-send-keys.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/tmux/cmd-send-keys.c b/usr.bin/tmux/cmd-send-keys.c
index 5abf3502f6e..e58294cbb17 100644
--- a/usr.bin/tmux/cmd-send-keys.c
+++ b/usr.bin/tmux/cmd-send-keys.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-send-keys.c,v 1.61 2020/04/14 13:22:05 nicm Exp $ */
+/* $OpenBSD: cmd-send-keys.c,v 1.62 2020/05/16 16:32:21 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -71,9 +71,7 @@ cmd_send_keys_inject_key(struct cmdq_item *item, struct cmdq_item *after,
wme = TAILQ_FIRST(&wp->modes);
if (wme == NULL || wme->mode->key_table == NULL) {
- if (options_get_number(wp->window->options, "xterm-keys"))
- key |= KEYC_XTERM;
- if (window_pane_key(wp, tc, s, wl, key, NULL) != 0)
+ if (window_pane_key(wp, tc, s, wl, key|KEYC_XTERM, NULL) != 0)
return (NULL);
return (item);
}