mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
Make M-f and M-b work the same at the command prompt as in copy mode,
pointed out by Romain Francoise.
This commit is contained in:
parent
fc5f8804ec
commit
2397083f7e
5
status.c
5
status.c
@ -1156,11 +1156,8 @@ status_prompt_key(struct client *c, int key)
|
|||||||
/* Find the separator at the end of the word. */
|
/* Find the separator at the end of the word. */
|
||||||
while (c->prompt_index != size) {
|
while (c->prompt_index != size) {
|
||||||
c->prompt_index++;
|
c->prompt_index++;
|
||||||
if (strchr(wsep, c->prompt_buffer[c->prompt_index])) {
|
if (strchr(wsep, c->prompt_buffer[c->prompt_index]))
|
||||||
/* Go back to the word. */
|
|
||||||
c->prompt_index--;
|
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
c->flags |= CLIENT_STATUS;
|
c->flags |= CLIENT_STATUS;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user