summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-11-05 13:28:58 +0000
committerMaxime Coste <frrrwww@gmail.com>2015-11-05 13:28:58 +0000
commit05f7337eb0fb4464e14e996d5ded5d5342afeb24 (patch)
treecda206b04d346996610fbbf5eb8ea07a5e2f0b5a /src
parent48a296dc71ac96720989828caa40d0eab0717c06 (diff)
Change ncurses wheel down default button to 5
Diffstat (limited to 'src')
-rw-r--r--src/ncurses_ui.cc8
-rw-r--r--src/ncurses_ui.hh2
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;