tmux: Use %1 instead of %%

According to the manpage all occurrences of `%1` are replaced, but only
the first of `%%`. The binding also worked with `%%`, but better stick
to the docs.
This commit is contained in:
2024-07-04 11:57:01 +02:00
parent 4f5d853823
commit 91d34358ec

View File

@@ -140,11 +140,11 @@ bind -T copy-mode-vi y \
} {
command-prompt -k -p (operator-pending) {
# do line-wise yank on yy
if -F "#{==:%%,y}" {
if -F "#{==:%1,y}" {
send -X select-line
} {
send -X begin-selection
send "%%"
send "%1"
}
send -X copy-pipe
}