From 21b49312c054785da013e88ca077d79d917b3049 Mon Sep 17 00:00:00 2001 From: Alexey Samoshkin Date: Sat, 25 Nov 2017 16:58:45 +0200 Subject: [PATCH] Do no cancel copy mode on MouseDown1Pane, just copy text and clear selection --- tmux/tmux.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tmux/tmux.conf b/tmux/tmux.conf index 5555d75..3911dd3 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -189,7 +189,8 @@ bind-key -T copy-mode-vi A send-keys -X append-selection-and-cancel \;\ # Prefer iTerm style selection: select, then mouse click to copy to buffer unbind -T copy-mode-vi MouseDragEnd1Pane bind -T copy-mode-vi MouseDown1Pane select-pane \;\ - send-keys -X copy-pipe-and-cancel "$yank" + send-keys -X copy-pipe "$yank" \;\ + send-keys -X clear-selection # iTerm2 works with clipboard out of the box, set-clipboard already set to "external" # tmux show-options -g -s set-clipboard