summaryrefslogtreecommitdiffstats
path: root/key-bindings.c
diff options
context:
space:
mode:
authornicm <nicm>2021-06-10 07:52:56 +0000
committernicm <nicm>2021-06-10 07:52:56 +0000
commit1bbdd2aba27057363134fa8c20c10e56ce095dea (patch)
treead23b1c04d7ca14d058569c35c9c81c6ddbc96be /key-bindings.c
parent73bf358f6da9ce8b6c2dd51849ab88a22bb883ad (diff)
Add -F for command-prompt and use it to fix "Rename" on the window menu,
GitHub issue 2699.
Diffstat (limited to 'key-bindings.c')
-rw-r--r--key-bindings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/key-bindings.c b/key-bindings.c
index b380f2cd..de5c20ee 100644
--- a/key-bindings.c
+++ b/key-bindings.c
@@ -41,7 +41,7 @@
" 'Kill' 'X' {kill-window}" \
" 'Respawn' 'R' {respawn-window -k}" \
" '#{?pane_marked,Unmark,Mark}' 'm' {select-pane -m}" \
- " 'Rename' 'n' {command-prompt -I \"#W\" \"rename-window -- '%%'\"}" \
+ " 'Rename' 'n' {command-prompt -FI \"#W\" \"rename-window -t#{window_id} -- '%%'\"}" \
" ''" \
" 'New After' 'w' {new-window -a}" \
" 'New At End' 'W' {new-window}"