summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2019-08-19 22:16:39 +1000
committerMaxime Coste <mawww@kakoune.org>2019-08-19 22:16:39 +1000
commit2359df0f1754a29a451e86f6835d572fcd7fe393 (patch)
tree053f08739b4fd11e988732f682289986a8747074 /src/main.cc
parentf1047181cb35fb5ee6e4e8bf85adfa4aafa4be19 (diff)
Make scrolling speed configurable
The UI now can send a 'Scroll' key, whose value is the scrolling amount encoded as a signed integer. This replaces the MouseWheelUp and MouseWheelDown keys. The NCursesUI now has a ncurses_wheel_scroll_amount ui_option that controls that amount, it can be negative to swap scrolling direction. Fixes #3045
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cc b/src/main.cc
index 620a3da8..b724f122 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -437,6 +437,7 @@ void register_options()
" ncurses_change_colors bool\n"
" ncurses_wheel_up_button int\n"
" ncurses_wheel_down_button int\n"
+ " ncurses_wheel_scroll_amount int\n"
" ncurses_shift_function_key int\n"
" ncurses_builtin_key_parser bool\n",
UserInterface::Options{});