From 30bec1101052c7a512a2f785e27acb879da83767 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 11 May 2015 19:11:02 +0100 Subject: [PATCH] Fix bug in ncurses mouse handling --- src/ncurses_ui.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ncurses_ui.cc b/src/ncurses_ui.cc index 41699027..46d6d76e 100644 --- a/src/ncurses_ui.cc +++ b/src/ncurses_ui.cc @@ -472,7 +472,7 @@ Key NCursesUI::get_key() if ((ev.bstate & BUTTON1_RELEASED) == BUTTON1_RELEASED) return mouse_release(pos); if ((ev.bstate & wheel_down_mask) == wheel_down_mask) return mouse_wheel_down(pos); if ((ev.bstate & wheel_up_mask) == wheel_up_mask) return mouse_wheel_up(pos); - else return mouse_pos(pos); + return mouse_pos(pos); } }