From 68bebe1fb7dfe5d152a2734c5bd572b1db641a4c Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 12 Oct 2016 13:03:27 +0000 Subject: 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. --- tmux.1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tmux.1') diff --git a/tmux.1 b/tmux.1 index f375a215..4cf403e7 100644 --- a/tmux.1 +++ b/tmux.1 @@ -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 -- cgit