aboutsummaryrefslogtreecommitdiff
path: root/cmd-send-keys.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-05-15 11:20:12 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-05-15 11:20:12 +0100
commit2cf967ee6786776675634459eefdff3dd7d7b778 (patch)
tree518514746dc2889086519a9e6fe745784775c0d0 /cmd-send-keys.c
parente95b6441396c96c7a9fbf115c2497198cd063ab0 (diff)
downloadrtmux-2cf967ee6786776675634459eefdff3dd7d7b778.tar.gz
rtmux-2cf967ee6786776675634459eefdff3dd7d7b778.tar.bz2
rtmux-2cf967ee6786776675634459eefdff3dd7d7b778.zip
Always set xterm flag.
Diffstat (limited to 'cmd-send-keys.c')
-rw-r--r--cmd-send-keys.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd-send-keys.c b/cmd-send-keys.c
index afaf0a81..27ca8a63 100644
--- a/cmd-send-keys.c
+++ b/cmd-send-keys.c
@@ -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);
}