=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/Attic/window-choose.c,v retrieving revision 1.51 retrieving revision 1.52 diff -c -r1.51 -r1.52 *** src/usr.bin/tmux/Attic/window-choose.c 2014/03/31 21:36:43 1.51 --- src/usr.bin/tmux/Attic/window-choose.c 2014/04/03 08:20:29 1.52 *************** *** 1,4 **** ! /* $OpenBSD: window-choose.c,v 1.51 2014/03/31 21:36:43 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: window-choose.c,v 1.52 2014/04/03 08:20:29 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott *************** *** 721,727 **** struct window_choose_mode_data *data = wp->modedata; struct screen *s = &data->screen; struct window_choose_mode_item *item; ! u_int idx; if (~m->event & MOUSE_EVENT_CLICK) return; --- 721,737 ---- struct window_choose_mode_data *data = wp->modedata; struct screen *s = &data->screen; struct window_choose_mode_item *item; ! u_int i, idx; ! ! if (m->event == MOUSE_EVENT_WHEEL) { ! for (i = 0; i < m->scroll; i++) { ! if (m->wheel == MOUSE_WHEEL_UP) ! window_choose_key(wp, sess, KEYC_UP); ! else ! window_choose_key(wp, sess, KEYC_DOWN); ! } ! return; ! } if (~m->event & MOUSE_EVENT_CLICK) return;