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:
@@ -140,11 +140,11 @@ bind -T copy-mode-vi y \
|
|||||||
} {
|
} {
|
||||||
command-prompt -k -p (operator-pending) {
|
command-prompt -k -p (operator-pending) {
|
||||||
# do line-wise yank on yy
|
# do line-wise yank on yy
|
||||||
if -F "#{==:%%,y}" {
|
if -F "#{==:%1,y}" {
|
||||||
send -X select-line
|
send -X select-line
|
||||||
} {
|
} {
|
||||||
send -X begin-selection
|
send -X begin-selection
|
||||||
send "%%"
|
send "%1"
|
||||||
}
|
}
|
||||||
send -X copy-pipe
|
send -X copy-pipe
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user