aboutsummaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-05-15 12:16:41 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-05-15 12:16:41 +0100
commit340fd691cbd6f575fc1169269dfa675f30ce71d3 (patch)
tree15d3aa92656e6fe413bd2e74b47c9ebb20edafb1 /window.c
parent031d4864a94cd7c042fe96a2d236bccde83655e7 (diff)
downloadrtmux-340fd691cbd6f575fc1169269dfa675f30ce71d3.tar.gz
rtmux-340fd691cbd6f575fc1169269dfa675f30ce71d3.tar.bz2
rtmux-340fd691cbd6f575fc1169269dfa675f30ce71d3.zip
Separate key flags and modifiers, log key flags, make the "xterm" flag more
explicit and fix M- keys with a leading escape.
Diffstat (limited to 'window.c')
-rw-r--r--window.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/window.c b/window.c
index 8121ba2d..7cb098dd 100644
--- a/window.c
+++ b/window.c
@@ -1145,8 +1145,10 @@ window_pane_key(struct window_pane *wp, struct client *c, struct session *s,
wme = TAILQ_FIRST(&wp->modes);
if (wme != NULL) {
- if (wme->mode->key != NULL && c != NULL)
- wme->mode->key(wme, c, s, wl, (key & ~KEYC_XTERM), m);
+ if (wme->mode->key != NULL && c != NULL) {
+ key &= ~KEYC_MASK_FLAGS;
+ wme->mode->key(wme, c, s, wl, key, m);
+ }
return (0);
}