On 14-06-23 03:34 PM, Balazs Kezes wrote: > On 2014-06-04 11:03 -0400, Alan Paul wrote: >> This patch (commit 353d182) broke my vim mousing. I have it turned off >> in vim (mouse=) With this patch, vim now controls my mouse regardless >> of the "mouse=" setting. > > On a second thought I think that commit contains a bug. It should only > affect the scrollwheel but leave the buttons as is. > > Can you retry with this patch? > > Thanks!
Yes. This patch works. > > > > diff --git a/input-keys.c b/input-keys.c > index 7531f22..5fb5a32 100644 > --- a/input-keys.c > +++ b/input-keys.c > @@ -210,7 +210,8 @@ input_mouse(struct window_pane *wp, struct session *s, > struct mouse_event *m) > * If the alternate screen is active and hasn't enabled the mouse, send > * up and down key presses for the mouse wheel. > */ > - if (wp->saved_grid != NULL && !(wp->screen->mode & ALL_MOUSE_MODES)) { > + if ((m->event & MOUSE_EVENT_WHEEL) && wp->saved_grid != NULL && > + !(wp->screen->mode & ALL_MOUSE_MODES)) { > for (i = 0; i < m->scroll; i++) { > if (m->wheel == MOUSE_WHEEL_UP) > input_key(wp, KEYC_UP); > > ------------------------------------------------------------------------------ Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users