summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2011-12-01 20:42:31 +0000
committernicm <nicm@openbsd.org>2011-12-01 20:42:31 +0000
commit9f8aa9c4e5078d2aac9cc1dd859f824f426c8ef3 (patch)
tree940951e84a35c65495e78e564c5ba429297535b5
parentFix negating of unsigned d_secsize. FIRST, cast to signed type, (diff)
downloadwireguard-openbsd-9f8aa9c4e5078d2aac9cc1dd859f824f426c8ef3.tar.xz
wireguard-openbsd-9f8aa9c4e5078d2aac9cc1dd859f824f426c8ef3.zip
Make M-f and M-b work the same at the command prompt as in copy mode,
pointed out by Romain Francoise.
-rw-r--r--usr.bin/tmux/status.c7
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;