mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-25 10:32:19 +03:00
Change ncurses wheel down default button to 5
This commit is contained in:
parent
48a296dc71
commit
05f7337eb0
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user