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:
Nicholas Marriott 2011-12-01 20:42:31 +00:00
parent fc5f8804ec
commit 2397083f7e

View File

@ -1156,12 +1156,9 @@ status_prompt_key(struct client *c, int key)
/* Find the separator at the end of the word. */
while (c->prompt_index != size) {
c->prompt_index++;
if (strchr(wsep, c->prompt_buffer[c->prompt_index])) {
/* Go back to the word. */
c->prompt_index--;
if (strchr(wsep, c->prompt_buffer[c->prompt_index]))
break;
}
}
c->flags |= CLIENT_STATUS;
break;