Skip to content

Commit

Permalink
fix scrolling in tmux
Browse files Browse the repository at this point in the history
  • Loading branch information
mdb committed Feb 19, 2017
1 parent 66e491e commit 32b6d5e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tmux.conf
Expand Up @@ -5,10 +5,11 @@ bind-key ` send-prefix
set -g base-index 1
setw -g mode-keys vi

set-window-option -g mode-mouse on
set-option -g mouse-select-pane on
set-option -g mouse-resize-pane on
set-option -g mouse-select-window on
# mouse
set -g mouse on

# fix mouse scrolling in Tmux > 2.1 https://github.com/tmux/tmux/issues/145
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e'"

# look good
set -g default-terminal "screen-256color"
Expand Down

0 comments on commit 32b6d5e

Please sign in to comment.