From 21c0c298498f92587a4abc6132b3fdadc8e50a74 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 1 Dec 2011 20:42:32 +0000 Subject: Make M-f and M-b work the same at the command prompt as in copy mode, pointed out by Romain Francoise. --- usr.bin/tmux/status.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/usr.bin/tmux/status.c b/usr.bin/tmux/status.c index 6d28a34b4e4..a02a0664717 100644 --- a/usr.bin/tmux/status.c +++ b/usr.bin/tmux/status.c @@ -1,4 +1,4 @@ -/* $OpenBSD: status.c,v 1.81 2011/11/15 23:34:12 nicm Exp $ */ +/* $OpenBSD: status.c,v 1.82 2011/12/01 20:42:31 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -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