Fix mouse scrolling in tmux 2.1+ on OSX

This commit is contained in:
Henrik Lissner 2015-11-23 21:51:38 -05:00
parent fc3ea2a451
commit 781f445de4

View file

@ -17,6 +17,8 @@ set-option -g default-shell $SHELL
# a mouse # a mouse
setw -g mouse-utf8 on setw -g mouse-utf8 on
setw -g mouse 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 ########### ## Key bindings ###########
# Remap the key prefix # Remap the key prefix