From 2397083f7e9dd219f45c370d662b3c44a0799456 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 1 Dec 2011 20:42:31 +0000 Subject: Make M-f and M-b work the same at the command prompt as in copy mode, pointed out by Romain Francoise. --- status.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'status.c') diff --git a/status.c b/status.c index 631597da..ebfde9ef 100644 --- a/status.c +++ b/status.c @@ -1156,11 +1156,8 @@ 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; -- cgit v1.2.3