mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	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:
		@@ -271,15 +271,15 @@ key_bindings_init(void)
 | 
			
		||||
		"bind -Tcopy-mode Down send -X cursor-down",
 | 
			
		||||
		"bind -Tcopy-mode Left send -X cursor-left",
 | 
			
		||||
		"bind -Tcopy-mode Right send -X cursor-right",
 | 
			
		||||
		"bind -Tcopy-mode M-1 command-prompt -p'repeat' -I1 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode M-2 command-prompt -p'repeat' -I2 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode M-3 command-prompt -p'repeat' -I3 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode M-4 command-prompt -p'repeat' -I4 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode M-5 command-prompt -p'repeat' -I5 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode M-6 command-prompt -p'repeat' -I6 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode M-7 command-prompt -p'repeat' -I7 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode M-8 command-prompt -p'repeat' -I8 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode M-9 command-prompt -p'repeat' -I9 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode M-1 command-prompt -Np'repeat' -I1 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode M-2 command-prompt -Np'repeat' -I2 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode M-3 command-prompt -Np'repeat' -I3 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode M-4 command-prompt -Np'repeat' -I4 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode M-5 command-prompt -Np'repeat' -I5 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode M-6 command-prompt -Np'repeat' -I6 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode M-7 command-prompt -Np'repeat' -I7 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode M-8 command-prompt -Np'repeat' -I8 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode M-9 command-prompt -Np'repeat' -I9 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode M-< send -X history-top",
 | 
			
		||||
		"bind -Tcopy-mode M-> send -X history-bottom",
 | 
			
		||||
		"bind -Tcopy-mode M-R send -X top-line",
 | 
			
		||||
@@ -313,17 +313,17 @@ key_bindings_init(void)
 | 
			
		||||
		"bind -Tcopy-mode-vi , send -X jump-reverse",
 | 
			
		||||
		"bind -Tcopy-mode-vi / command-prompt -p'search down' \"send -X search-forward '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode-vi 0 send -X start-of-line",
 | 
			
		||||
		"bind -Tcopy-mode-vi 1 command-prompt -p'repeat' -I1 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode-vi 2 command-prompt -p'repeat' -I2 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode-vi 3 command-prompt -p'repeat' -I3 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode-vi 4 command-prompt -p'repeat' -I4 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode-vi 5 command-prompt -p'repeat' -I5 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode-vi 6 command-prompt -p'repeat' -I6 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode-vi 7 command-prompt -p'repeat' -I7 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode-vi 8 command-prompt -p'repeat' -I8 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode-vi 9 command-prompt -p'repeat' -I9 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode-vi 1 command-prompt -Np'repeat' -I1 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode-vi 2 command-prompt -Np'repeat' -I2 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode-vi 3 command-prompt -Np'repeat' -I3 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode-vi 4 command-prompt -Np'repeat' -I4 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode-vi 5 command-prompt -Np'repeat' -I5 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode-vi 6 command-prompt -Np'repeat' -I6 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode-vi 7 command-prompt -Np'repeat' -I7 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode-vi 8 command-prompt -Np'repeat' -I8 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode-vi 9 command-prompt -Np'repeat' -I9 \"send -N '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode-vi : command-prompt -p'goto line' \"send -X goto-line '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode-vi \\; send -X jump-again"
 | 
			
		||||
		"bind -Tcopy-mode-vi \\; send -X jump-again",
 | 
			
		||||
		"bind -Tcopy-mode-vi ? command-prompt -p'search up' \"send -X search-backward '%%'\"",
 | 
			
		||||
		"bind -Tcopy-mode-vi A send -X append-selection-and-cancel",
 | 
			
		||||
		"bind -Tcopy-mode-vi B send -X previous-space",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user