Use the new mouse setting when enabling/disabling the mouse

This commit is contained in:
Kevin MacMartin 2015-10-20 12:18:36 -04:00
parent 78fe936729
commit a55000acd5
2 changed files with 4 additions and 4 deletions

View file

@ -47,8 +47,8 @@ set-option -g mouse-utf8 on
# KEY BINDINGS # KEY BINDINGS
# #
# m and <ctrl>m to enabling and disabling the mouse respectively # m and <ctrl>m to enabling and disabling the mouse respectively
bind m set-option -g mode-mouse on \; set-option -g mouse-resize-pane on \; set-option -g mouse-select-pane on \; set-option -g mouse-select-window on \; display 'Mouse: ON' bind m set-option -g mouse on \; display 'Mouse: ON'
bind C-m set-option -g mode-mouse off \; set-option -g mouse-resize-pane off \; set-option -g mouse-select-pane off \; set-option -g mouse-select-window off \; display 'Mouse: OFF' bind C-m set-option -g mouse off \; display 'Mouse: OFF'
# #
# r and <ctrl>r to reloading ~/.tmux.conf and /etc/tmux.conf respectively # r and <ctrl>r to reloading ~/.tmux.conf and /etc/tmux.conf respectively
bind r source-file ~/.tmux.conf bind r source-file ~/.tmux.conf

View file

@ -47,8 +47,8 @@ set-option -g mouse-utf8 on
# KEY BINDINGS # KEY BINDINGS
# #
# m and <ctrl>m to enabling and disabling the mouse respectively # m and <ctrl>m to enabling and disabling the mouse respectively
bind m set-option -g mode-mouse on \; set-option -g mouse-resize-pane on \; set-option -g mouse-select-pane on \; set-option -g mouse-select-window on \; display 'Mouse: ON' bind m set-option -g mouse on \; display 'Mouse: ON'
bind C-m set-option -g mode-mouse off \; set-option -g mouse-resize-pane off \; set-option -g mouse-select-pane off \; set-option -g mouse-select-window off \; display 'Mouse: OFF' bind C-m set-option -g mouse off \; display 'Mouse: OFF'
# #
# r and <ctrl>r to reloading ~/.tmux.conf and /etc/tmux.conf respectively # r and <ctrl>r to reloading ~/.tmux.conf and /etc/tmux.conf respectively
bind r source-file ~/.tmux.conf bind r source-file ~/.tmux.conf