diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-09-16 19:57:57 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-09-16 20:02:12 +0100 |
| commit | 693d9a4861c7a6019c082c8d1f773c362a56e62e (patch) | |
| tree | 0e2c0b2cf05a87db00dd0032de0682328adb8b9c /src/ncurses_ui.cc | |
| parent | afad50514b6653c1bfa767306d857f939de2eb02 (diff) | |
Store key hash in IdMap
Diffstat (limited to 'src/ncurses_ui.cc')
| -rw-r--r-- | src/ncurses_ui.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ncurses_ui.cc b/src/ncurses_ui.cc index 81adf298..574b071c 100644 --- a/src/ncurses_ui.cc +++ b/src/ncurses_ui.cc @@ -935,34 +935,34 @@ void NCursesUI::set_ui_options(const Options& options) { { auto it = options.find("ncurses_assistant"); - if (it == options.end() or it->second == "clippy") + if (it == options.end() or it->value == "clippy") m_assistant = assistant_clippy; - else if (it->second == "cat") + else if (it->value == "cat") m_assistant = assistant_cat; - else if (it->second == "none" or it->second == "off") + else if (it->value == "none" or it->value == "off") m_assistant = ConstArrayView<StringView>{}; } { auto it = options.find("ncurses_status_on_top"); m_status_on_top = it != options.end() and - (it->second == "yes" or it->second == "true"); + (it->value == "yes" or it->value == "true"); } { auto it = options.find("ncurses_set_title"); m_set_title = it == options.end() or - (it->second == "yes" or it->second == "true"); + (it->value == "yes" or 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->second).value_or(2) : 2; + 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->second).value_or(4) : 4; + str_to_int_ifp(wheel_up_it->value).value_or(4) : 4; } } |
