diff --git a/tmux.h b/tmux.h index 22fb80a4..c7bebe6d 100644 --- a/tmux.h +++ b/tmux.h @@ -945,7 +945,7 @@ RB_HEAD(sessions, session); /* Mouse wheel states. */ #define MOUSE_WHEEL_UP 0 -#define MOUSE_WHEEL_DOWN 64 +#define MOUSE_WHEEL_DOWN 1 /* Mouse helpers. */ #define MOUSE_BUTTONS(b) ((b) & MOUSE_MASK_BUTTONS) diff --git a/window-copy.c b/window-copy.c index 78667b1e..e35e6070 100644 --- a/window-copy.c +++ b/window-copy.c @@ -529,7 +529,7 @@ window_copy_command(struct window_pane *wp, struct client *c, struct session *s, return; command = args->argv[0]; - if (m != NULL && m->valid) + if (m != NULL && m->valid && !MOUSE_WHEEL(m->b)) window_copy_move_mouse(m); if (args->argc == 1) {