summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2015-10-26 23:06:18 +0000
committernicm <nicm@openbsd.org>2015-10-26 23:06:18 +0000
commit04ae63e4c78be59675317400f9a69ac977eb5bc6 (patch)
tree5261336d8536c0939d07959a437b16d0b5df7f53
parentTidy up error() levels: merge COMPILE and COMPILE2, and kill ERROR (unused) (diff)
downloadwireguard-openbsd-04ae63e4c78be59675317400f9a69ac977eb5bc6.tar.xz
wireguard-openbsd-04ae63e4c78be59675317400f9a69ac977eb5bc6.zip
Default bindings for mouse wheel on status line to change window (like
we had before), from Patrick Palka.
-rw-r--r--usr.bin/tmux/key-bindings.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/key-bindings.c b/usr.bin/tmux/key-bindings.c
index 63226737641..59ae1389706 100644
--- a/usr.bin/tmux/key-bindings.c
+++ b/usr.bin/tmux/key-bindings.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: key-bindings.c,v 1.51 2015/10/21 11:13:47 nicm Exp $ */
+/* $OpenBSD: key-bindings.c,v 1.52 2015/10/26 23:06:18 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -223,6 +223,8 @@ key_bindings_init(void)
"bind -n MouseDown1Pane select-pane -t=\\; send-keys -M",
"bind -n MouseDrag1Border resize-pane -M",
"bind -n MouseDown1Status select-window -t=",
+ "bind -n WheelDownStatus next-window",
+ "bind -n WheelUpStatus previous-window",
"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\"'",