Fix mouse scrolling in tmux 2.1+ on OSX
This commit is contained in:
parent
fc3ea2a451
commit
781f445de4
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue