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!



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);


-- 
Balazs

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to