aboutsummaryrefslogtreecommitdiff
path: root/server-client.c
diff options
context:
space:
mode:
authornicm <nicm>2016-10-12 13:03:27 +0000
committernicm <nicm>2016-10-12 13:03:27 +0000
commit68bebe1fb7dfe5d152a2734c5bd572b1db641a4c (patch)
treeebd451ee92e938399563bb994b572639af3e75cd /server-client.c
parent22a8afee9e8dcbe45a371ca72af0169b7c94eac5 (diff)
downloadrtmux-68bebe1fb7dfe5d152a2734c5bd572b1db641a4c.tar.gz
rtmux-68bebe1fb7dfe5d152a2734c5bd572b1db641a4c.tar.bz2
rtmux-68bebe1fb7dfe5d152a2734c5bd572b1db641a4c.zip
The repeat prompt in both emacs and vi (and the old one in tmux) doesn't
support line editing and instead executes a command as soon as a non-number key is pressed. Add a -N flag to command-prompt for the same in copy mode. Reported by Theo Buehler.
Diffstat (limited to 'server-client.c')
-rw-r--r--server-client.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/server-client.c b/server-client.c
index d5c0cf23..7e4d1ee4 100644
--- a/server-client.c
+++ b/server-client.c
@@ -727,9 +727,10 @@ server_client_handle_key(struct client *c, key_code key)
server_clear_identify(c, NULL);
}
if (c->prompt_string != NULL) {
- if (!(c->flags & CLIENT_READONLY))
- status_prompt_key(c, key);
- return;
+ if (c->flags & CLIENT_READONLY)
+ return;
+ if (status_prompt_key(c, key) == 0)
+ return;
}
/* Check for mouse keys. */