From 31ded1ea0c65f2a0ebc3aa1bfee97624c126aefc Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 29 Aug 2018 08:56:51 +0000 Subject: [PATCH] Add C-Left and C-Right as aliases for M-b and M-f. --- usr.bin/tmux/status.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 @@ -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. */ -- 2.20.1