Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam 2018-10-03 17:02:38 +01:00
commit c44bb2df17
2 changed files with 2 additions and 2 deletions

2
tmux.h
View File

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

View File

@ -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) {