mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 10:08:47 +00:00
Add C-Left and C-Right as aliases for M-b and M-f.
This commit is contained in:
parent
79d2351ce8
commit
e53094bc5f
3
status.c
3
status.c
@ -1059,6 +1059,7 @@ status_prompt_key(struct client *c, key_code key)
|
|||||||
free(s);
|
free(s);
|
||||||
return (1);
|
return (1);
|
||||||
}
|
}
|
||||||
|
key &= ~KEYC_XTERM;
|
||||||
|
|
||||||
keys = options_get_number(c->session->options, "status-keys");
|
keys = options_get_number(c->session->options, "status-keys");
|
||||||
if (keys == MODEKEY_VI) {
|
if (keys == MODEKEY_VI) {
|
||||||
@ -1226,6 +1227,7 @@ process_key:
|
|||||||
|
|
||||||
goto changed;
|
goto changed;
|
||||||
case 'f'|KEYC_ESCAPE:
|
case 'f'|KEYC_ESCAPE:
|
||||||
|
case KEYC_RIGHT|KEYC_CTRL:
|
||||||
ws = options_get_string(oo, "word-separators");
|
ws = options_get_string(oo, "word-separators");
|
||||||
|
|
||||||
/* Find a word. */
|
/* Find a word. */
|
||||||
@ -1249,6 +1251,7 @@ process_key:
|
|||||||
|
|
||||||
goto changed;
|
goto changed;
|
||||||
case 'b'|KEYC_ESCAPE:
|
case 'b'|KEYC_ESCAPE:
|
||||||
|
case KEYC_LEFT|KEYC_CTRL:
|
||||||
ws = options_get_string(oo, "word-separators");
|
ws = options_get_string(oo, "word-separators");
|
||||||
|
|
||||||
/* Find a non-separator. */
|
/* Find a non-separator. */
|
||||||
|
Loading…
Reference in New Issue
Block a user