Skip to content

Commit 44fc7cc

Browse files
paresharmadocwhat
authored andcommitted
Use -T instead of -t for Tmux 2.4 and above
1 parent 63d5054 commit 44fc7cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

yank.tmux

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ set_error_bindings() {
1717
key_bindings="$(yank_key) $(put_key) $(yank_put_key)"
1818
for key in $key_bindings; do
1919
if tmux_is_at_least 2.4; then
20-
tmux bind-key -t copy-mode-vi "$key" send-keys -X copy-pipe-and-cancel "tmux display-message 'Error! tmux-yank dependencies not installed!'"
21-
tmux bind-key -t copy-mode "$key" send-keys -X copy-pipe-and-cancel "tmux display-message 'Error! tmux-yank dependencies not installed!'"
20+
tmux bind-key -T copy-mode-vi "$key" send-keys -X copy-pipe-and-cancel "tmux display-message 'Error! tmux-yank dependencies not installed!'"
21+
tmux bind-key -T copy-mode "$key" send-keys -X copy-pipe-and-cancel "tmux display-message 'Error! tmux-yank dependencies not installed!'"
2222
else
2323
tmux bind-key -t vi-copy "$key" copy-pipe "tmux display-message 'Error! tmux-yank dependencies not installed!'"
2424
tmux bind-key -t emacs-copy "$key" copy-pipe "tmux display-message 'Error! tmux-yank dependencies not installed!'"

0 commit comments

Comments
 (0)