diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-12-01 20:42:32 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-12-01 20:42:32 +0000 |
commit | 21c0c298498f92587a4abc6132b3fdadc8e50a74 (patch) | |
tree | b6407f574a68402628c197037b1e3dec523a0271 /usr.bin | |
parent | c7c7266967ad856e3d82a824a203e97882280591 (diff) |
Make M-f and M-b work the same at the command prompt as in copy mode,
pointed out by Romain Francoise.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tmux/status.c | 7 |
1 files 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 <nicm@users.sourceforge.net> @@ -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; |