diff options
author | 2020-04-02 05:35:15 +0000 | |
---|---|---|
committer | 2020-04-02 05:35:15 +0000 | |
commit | 5fa6c50aa987f81d26de81c6e73848d449407a4f (patch) | |
tree | e1721b6a9794a65bee644423190799d36e0c1c31 /usr.bin/tmux/key-bindings.c | |
parent | Add __lshrti3 to libkern and use it on sparc64 (diff) | |
download | wireguard-openbsd-5fa6c50aa987f81d26de81c6e73848d449407a4f.tar.xz wireguard-openbsd-5fa6c50aa987f81d26de81c6e73848d449407a4f.zip |
Add a W position to display-menu -y to use the line above (or below) the
status line containing the window list. Leave S meaning above (or below)
all status lines. GitHub issue 2145.
Diffstat (limited to 'usr.bin/tmux/key-bindings.c')
-rw-r--r-- | usr.bin/tmux/key-bindings.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/tmux/key-bindings.c b/usr.bin/tmux/key-bindings.c index cbdbc7172a0..18832281811 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.115 2020/03/20 18:35:53 nicm Exp $ */ +/* $OpenBSD: key-bindings.c,v 1.116 2020/04/02 05:35:15 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -317,7 +317,7 @@ key_bindings_init(void) "bind -N 'Resize the pane right' -r C-Right resize-pane -R", /* Menu keys */ - "bind < display-menu -xW -yS -T '#[align=centre]#{window_index}:#{window_name}' " DEFAULT_WINDOW_MENU, + "bind < display-menu -xW -yW -T '#[align=centre]#{window_index}:#{window_name}' " DEFAULT_WINDOW_MENU, "bind > display-menu -xP -yP -T '#[align=centre]#{pane_index} (#{pane_id})' " DEFAULT_PANE_MENU, /* Mouse button 1 down on pane. */ @@ -351,10 +351,10 @@ key_bindings_init(void) "bind -n WheelUpStatus previous-window", /* Mouse button 3 down on status left. */ - "bind -n MouseDown3StatusLeft display-menu -t= -xM -yS -T '#[align=centre]#{session_name}' " DEFAULT_SESSION_MENU, + "bind -n MouseDown3StatusLeft display-menu -t= -xM -yW -T '#[align=centre]#{session_name}' " DEFAULT_SESSION_MENU, /* Mouse button 3 down on status line. */ - "bind -n MouseDown3Status display-menu -t= -xW -yS -T '#[align=centre]#{window_index}:#{window_name}' " DEFAULT_WINDOW_MENU, + "bind -n MouseDown3Status display-menu -t= -xW -yW -T '#[align=centre]#{window_index}:#{window_name}' " DEFAULT_WINDOW_MENU, /* Mouse button 3 down on pane. */ "bind -n MouseDown3Pane if -Ft= '#{||:#{mouse_any_flag},#{&&:#{pane_in_mode},#{?#{m/r:(copy|view)-mode,#{pane_mode}},0,1}}}' { select-pane -t=; send -M } { display-menu -t= -xM -yM -T '#[align=centre]#{pane_index} (#{pane_id})' " DEFAULT_PANE_MENU " }", |