summaryrefslogtreecommitdiffstats
path: root/status.c
diff options
context:
space:
mode:
Diffstat (limited to 'status.c')
-rw-r--r--status.c5
1 files changed, 1 insertions, 4 deletions
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;