On 2014-03-05 11:50 +0100, Marcel Partap wrote:
> diff --git a/input-keys.c b/input-keys.c
> index 7582a63..b76dd6c 100644
> --- a/input-keys.c
> +++ b/input-keys.c
> @@ -244,7 +260,7 @@ input_mouse(struct window_pane *wp, struct session *s, 
> struct mouse_event *m)
>                       paste_send_pane(pb, wp, "\r",
>                           wp->screen->mode & MODE_BRACKETPASTE);
>               }
> -     } else if ((m->xb & 3) != 1 &&
> +     } else if (m->button != 1 &&
>           options_get_number(&wp->window->options, "mode-mouse") == 1) {
>               if (window_pane_set_mode(wp, &window_copy_mode) == 0) {
>                       window_copy_init_from_pane(wp);

This introduced a bug into tmux. When you enable all the mouse options
then you can enter the copy mode via the mouse wheel scrolling. But
m->button is not updated when you issue mouse wheel scroll events. So
click the middle button to set m->button to 1 and then you won't be able
to use scroll wheel to enter the copy mode until you press either the
left or the right button to reset m->button.

-- 
Balazs

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to