mirror of
https://github.com/tmux/tmux.git
synced 2025-12-27 20:36:04 +00:00
Merge branch 'obsd-master'
Conflicts: Makefile tty-keys.c
This commit is contained in:
@@ -721,7 +721,17 @@ window_choose_mouse(
|
||||
struct window_choose_mode_data *data = wp->modedata;
|
||||
struct screen *s = &data->screen;
|
||||
struct window_choose_mode_item *item;
|
||||
u_int idx;
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user