summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/status.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/tmux/status.c')
-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;