From 7b02cb6d03d99769fe853992f18f22e9f1085398 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 7 Jul 2026 12:30:36 +0000 Subject: [PATCH] Fix . and ; bindings, reported by tb. --- key-bindings.c | 4 ++-- tmux.1 | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/key-bindings.c b/key-bindings.c index 27cbb0e86..c73fd7c33 100644 --- a/key-bindings.c +++ b/key-bindings.c @@ -388,14 +388,14 @@ key_bindings_init(void) "bind -N 'Rename current session' '$' { command-prompt -I'#S' { rename-session -- '%%' } }", "bind -N 'Split window horizontally' % { split-window -h }", "bind -N 'Kill current window' & { confirm-before -p\"kill-window #W? (y/n)\" kill-window }", - "bind -N 'Prompt for window index to select' \"'\" { command-prompt -T window-target -pindex { select-window -t ':%%' } }", + "bind -N 'Prompt for window index to select' \"'\" { command-prompt -pindex { select-window -t ':%%' } }", "bind -N 'New floating pane' * { new-pane }", "bind -N 'Toggle pane between floating and tiled' @ { if -F '#{pane_floating_flag}' { join-pane } { break-pane -W } }", "bind -N 'Switch to previous client' ( { switch-client -p }", "bind -N 'Switch to next client' ) { switch-client -n }", "bind -N 'Rename current window' , { command-prompt -I'#W' { rename-window -- '%%' } }", "bind -N 'Delete the most recent paste buffer' - { delete-buffer }", - "bind -N 'Move the current window' . { command-prompt -T target { move-window -t '%%' } }", + "bind -N 'Move the current window' . { command-prompt { move-window -t '%%' } }", "bind -N 'Describe key binding' '/' { command-prompt -kpkey { list-keys -1N '%%' } }", "bind -N 'Select window 0' 0 { select-window -t:=0 }", "bind -N 'Select window 1' 1 { select-window -t:=1 }", diff --git a/tmux.1 b/tmux.1 index ceeed5d8c..fcf702fee 100644 --- a/tmux.1 +++ b/tmux.1 @@ -7819,10 +7819,7 @@ This affects what completions are offered when is pressed. Available types are: .Ql command , -.Ql search , -.Ql target -and -.Ql window\-target . +.Ql search . .Pp The following keys have a special meaning in the command prompt, depending on the value of the