diff options
author | nicm <nicm> | 2015-10-21 11:13:47 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-10-21 11:13:47 +0000 |
commit | ddbc4a0f6ca0c6486a038ce91971212785d44744 (patch) | |
tree | b5ed3a834649546bc9e8cf18e8d1de597e3c86de | |
parent | 076034345afe0dbfef3fa1a8116a64dc7d990b51 (diff) |
By popular demand add a default binding for mouse wheel up to scroll
into history (if the mouse is, on of course).
-rw-r--r-- | key-bindings.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/key-bindings.c b/key-bindings.c index 3dc3a054..cc1a1c6e 100644 --- a/key-bindings.c +++ b/key-bindings.c @@ -225,6 +225,7 @@ key_bindings_init(void) "bind -n MouseDown1Status select-window -t=", "bind -n MouseDrag1Pane if -Ft= '#{mouse_any_flag}' 'if -Ft= \"#{pane_in_mode}\" \"copy-mode -M\" \"send-keys -M\"' 'copy-mode -M'", "bind -n MouseDown3Pane select-pane -mt=", + "bind -n WheelUpPane if-shell -Ft= '#{mouse_any_flag}' 'send-keys -M' 'if -Ft= \"#{pane_in_mode}\" \"send-keys -M\" \"copy-mode -e\"'", }; u_int i; struct cmd_list *cmdlist; |