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.
This commit is contained in:
nicm
2016-10-12 13:03:27 +00:00
parent 22a8afee9e
commit 68bebe1fb7
6 changed files with 79 additions and 59 deletions

View File

@ -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. */