Skip to content

Commit

Permalink
Remove terminal_wheel_up/down_button UI option
Browse files Browse the repository at this point in the history
It seems nobody uses it, and it is not plugged through anyway.

Closes #2642
  • Loading branch information
mawww committed Sep 2, 2021
1 parent e839c64 commit b841f3a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions doc/pages/options.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,6 @@ are exclusively available to built-in options.
boolean option that can disable color palette changing if the
terminfo enables it but the terminal does not support it.

*terminal_wheel_down_button*, *terminal_wheel_up_button*:::
specify which button send for wheel down/up events

*terminal_shift_function_key*:::
Function key from which shifted function key start, if the
terminal sends F13 for <s-F1>, this should be set to 12.
Expand Down
2 changes: 0 additions & 2 deletions src/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,6 @@ void register_options()
" terminal_set_title bool\n"
" terminal_enable_mouse bool\n"
" terminal_change_colors bool\n"
" terminal_wheel_up_button int\n"
" terminal_wheel_down_button int\n"
" terminal_wheel_scroll_amount int\n"
" terminal_shift_function_key int\n",
UserInterface::Options{});
Expand Down
2 changes: 0 additions & 2 deletions src/terminal_ui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1434,8 +1434,6 @@ void TerminalUI::set_ui_options(const Options& options)
m_shift_function_key = find("terminal_shift_function_key").map(str_to_int_ifp).value_or(default_shift_function_key);

enable_mouse(find("terminal_enable_mouse").map(to_bool).value_or(true));
m_wheel_up_button = find("terminal_wheel_up_button").map(str_to_int_ifp).value_or(4);
m_wheel_down_button = find("terminal_wheel_down_button").map(str_to_int_ifp).value_or(5);
m_wheel_scroll_amount = find("terminal_wheel_scroll_amount").map(str_to_int_ifp).value_or(3);

m_padding_char = find("terminal_padding_char").map([](StringView s) { return s.column_length() < 1 ? ' ' : s[0_char]; }).value_or(Codepoint{'~'});
Expand Down
2 changes: 0 additions & 2 deletions src/terminal_ui.hh
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,6 @@ private:
void enable_mouse(bool enabled);

bool m_mouse_enabled = false;
int m_wheel_up_button = 4;
int m_wheel_down_button = 5;
int m_wheel_scroll_amount = 3;
int m_mouse_state = 0;

Expand Down

0 comments on commit b841f3a

Please sign in to comment.