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

4
tmux.1
View File

@ -3748,7 +3748,7 @@ session option.
Commands related to the status line are as follows:
.Bl -tag -width Ds
.It Xo Ic command-prompt
.Op Fl 1
.Op Fl 1N
.Op Fl I Ar inputs
.Op Fl p Ar prompts
.Op Fl t Ar target-client
@ -3802,6 +3802,8 @@ to
.Fl 1
makes the prompt only accept one key press, in this case the resulting input
is a single character.
.Fl N
accepts only numbers and exit the prompt on any other key press.
.It Xo Ic confirm-before
.Op Fl p Ar prompt
.Op Fl t Ar target-client