Add -F for command-prompt and use it to fix "Rename" on the window menu,

GitHub issue 2699.
This commit is contained in:
nicm
2021-06-10 07:52:56 +00:00
parent 73bf358f6d
commit 1bbdd2aba2
3 changed files with 13 additions and 6 deletions

View File

@ -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}"