From 05f7337eb0fb4464e14e996d5ded5d5342afeb24 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 5 Nov 2015 13:28:58 +0000 Subject: [PATCH] Change ncurses wheel down default button to 5 --- src/ncurses_ui.cc | 8 ++++---- src/ncurses_ui.hh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ncurses_ui.cc b/src/ncurses_ui.cc index 87f8275c..2ba5abd2 100644 --- a/src/ncurses_ui.cc +++ b/src/ncurses_ui.cc @@ -968,13 +968,13 @@ void NCursesUI::set_ui_options(const Options& options) enable_mouse_it->value == "yes" or enable_mouse_it->value == "true"); - auto wheel_down_it = options.find("ncurses_wheel_down_button"); - m_wheel_down_button = wheel_down_it != options.end() ? - str_to_int_ifp(wheel_down_it->value).value_or(2) : 2; - auto wheel_up_it = options.find("ncurses_wheel_up_button"); m_wheel_up_button = wheel_up_it != options.end() ? str_to_int_ifp(wheel_up_it->value).value_or(4) : 4; + + auto wheel_down_it = options.find("ncurses_wheel_down_button"); + m_wheel_down_button = wheel_down_it != options.end() ? + str_to_int_ifp(wheel_down_it->value).value_or(5) : 5; } } diff --git a/src/ncurses_ui.hh b/src/ncurses_ui.hh index 3663f649..997bb469 100644 --- a/src/ncurses_ui.hh +++ b/src/ncurses_ui.hh @@ -114,8 +114,8 @@ private: void enable_mouse(bool enabled); bool m_mouse_enabled = false; - int m_wheel_down_button = 2; int m_wheel_up_button = 4; + int m_wheel_down_button = 5; bool m_set_title = true;