summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2015-10-21 11:13:47 +0000
committernicm <nicm@openbsd.org>2015-10-21 11:13:47 +0000
commit9ad2802d85cb8cc9330cfe59f94b34c60d3dcc09 (patch)
tree7bd76b9ae9b013b83bd841db41ea4efeaab5db90
parentmake sure ProgressMeter gets set up. Fixes some weirdness in package installs, (diff)
downloadwireguard-openbsd-9ad2802d85cb8cc9330cfe59f94b34c60d3dcc09.tar.xz
wireguard-openbsd-9ad2802d85cb8cc9330cfe59f94b34c60d3dcc09.zip
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--usr.bin/tmux/key-bindings.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/key-bindings.c b/usr.bin/tmux/key-bindings.c
index 2605e1afe58..63226737641 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.50 2015/06/05 08:14:16 nicm Exp $ */
+/* $OpenBSD: key-bindings.c,v 1.51 2015/10/21 11:13:47 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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;