summaryrefslogtreecommitdiffstats
path: root/cmd-send-keys.c
diff options
context:
space:
mode:
authornicm <nicm>2017-06-28 11:36:39 +0000
committernicm <nicm>2017-06-28 11:36:39 +0000
commita00b0d13ede4a0f3743606c79a38eada403f77f9 (patch)
tree374ff3593c70c8e4c062a2619101430423346de6 /cmd-send-keys.c
parent1e376be13d3ed6bd850b15d0292d73d47ad07e94 (diff)
Apply the xterm key flag when needed for send-keys, fixes problem
reported by Franky Spamschleuder.
Diffstat (limited to 'cmd-send-keys.c')
-rw-r--r--cmd-send-keys.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd-send-keys.c b/cmd-send-keys.c
index 5c6db347..8d2c2608 100644
--- a/cmd-send-keys.c
+++ b/cmd-send-keys.c
@@ -64,6 +64,8 @@ cmd_send_keys_inject(struct client *c, struct cmdq_item *item, key_code key)
struct key_binding *bd, bd_find;
if (wp->mode == NULL || wp->mode->key_table == NULL) {
+ if (options_get_number(wp->window->options, "xterm-keys"))
+ key |= KEYC_XTERM;
window_pane_key(wp, NULL, s, key, NULL);
return;
}