summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2018-08-29 08:56:52 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2018-08-29 08:56:52 +0000
commitfdb53d4311fb187bc514e33a669683275ad95df7 (patch)
treef5649e905cae1983f6b87195732254480756c396 /usr.bin/tmux
parentb1b8ec5fbc0ac2fafff8d7debd8ab5fdd791e776 (diff)
Add C-Left and C-Right as aliases for M-b and M-f.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/status.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/tmux/status.c b/usr.bin/tmux/status.c
index 36dfe10e2b2..b045518c7e1 100644
--- a/usr.bin/tmux/status.c
+++ b/usr.bin/tmux/status.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: status.c,v 1.179 2018/08/22 20:06:14 nicm Exp $ */
+/* $OpenBSD: status.c,v 1.180 2018/08/29 08:56:51 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1059,6 +1059,7 @@ status_prompt_key(struct client *c, key_code key)
free(s);
return (1);
}
+ key &= ~KEYC_XTERM;
keys = options_get_number(c->session->options, "status-keys");
if (keys == MODEKEY_VI) {
@@ -1226,6 +1227,7 @@ process_key:
goto changed;
case 'f'|KEYC_ESCAPE:
+ case KEYC_RIGHT|KEYC_CTRL:
ws = options_get_string(oo, "word-separators");
/* Find a word. */
@@ -1249,6 +1251,7 @@ process_key:
goto changed;
case 'b'|KEYC_ESCAPE:
+ case KEYC_LEFT|KEYC_CTRL:
ws = options_get_string(oo, "word-separators");
/* Find a non-separator. */