diff options
author | nicm <nicm> | 2020-03-20 18:11:56 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-03-20 18:11:56 +0000 |
commit | 68cf61aa4649e29f434750ff0ec45f78e9164320 (patch) | |
tree | f9b9cb4135ddc500c4d27cdd879ccf212f86ce06 | |
parent | 005cd486202c35327774857e9cef8e9d446dc092 (diff) | |
download | rtmux-68cf61aa4649e29f434750ff0ec45f78e9164320.tar.gz rtmux-68cf61aa4649e29f434750ff0ec45f78e9164320.tar.bz2 rtmux-68cf61aa4649e29f434750ff0ec45f78e9164320.zip |
Still want the per-mode menus outside copy mode.
-rw-r--r-- | key-bindings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/key-bindings.c b/key-bindings.c index dc3b7b9b..99ce34ca 100644 --- a/key-bindings.c +++ b/key-bindings.c @@ -357,7 +357,7 @@ key_bindings_init(void) "bind -n MouseDown3Status display-menu -t= -xW -yS -T '#[align=centre]#{window_index}:#{window_name}' " DEFAULT_WINDOW_MENU, /* Mouse button 3 down on pane. */ - "bind -n MouseDown3Pane if -Ft= '#{mouse_any_flag}' { select-pane -t=; send -M } { display-menu -t= -xM -yM -T '#[align=centre]#{pane_index} (#{pane_id})' " DEFAULT_PANE_MENU " }", + "bind -n MouseDown3Pane if -Ft= '#{||:#{mouse_any_flag},#{&&:#{pane_in_mode},#{!=:#{pane_mode},copy-mode}}}' { select-pane -t=; send -M } { display-menu -t= -xM -yM -T '#[align=centre]#{pane_index} (#{pane_id})' " DEFAULT_PANE_MENU " }", "bind -n M-MouseDown3Pane display-menu -t= -xM -yM -T '#[align=centre]#{pane_index} (#{pane_id})' " DEFAULT_PANE_MENU, /* Copy mode (emacs) keys. */ |