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

issue 2699.
This commit is contained in:
Nicholas Marriott
2021-05-10 07:52:30 +01:00
parent bde3829131
commit 4ca6b42c24
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}"