From 781f445de4a5c65c88c88431a4a92736ae166a20 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 23 Nov 2015 21:51:38 -0500 Subject: [PATCH] Fix mouse scrolling in tmux 2.1+ on OSX --- tmux.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tmux.conf b/tmux.conf index 84d613eb..0be8c967 100644 --- a/tmux.conf +++ b/tmux.conf @@ -17,6 +17,8 @@ set-option -g default-shell $SHELL # a mouse setw -g mouse-utf8 on setw -g mouse on +# fix mouse scrolling: enter copy mode on scroll-up, exits it when scrolled to bottom +bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e'" ## Key bindings ########### # Remap the key prefix