From 0c83381a534f92419cbbe174efbc4238b1ab5394 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Thu, 28 Dec 2023 14:49:37 +0900 Subject: [PATCH] bim: bind global.scrollamount --- apps/bim.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/bim.c b/apps/bim.c index 8af831db..475299d3 100644 --- a/apps/bim.c +++ b/apps/bim.c @@ -5975,6 +5975,15 @@ BIM_COMMAND(global_statusbar,"global.statusbar","Show or set whether to display return 0; } +BIM_COMMAND(global_scrollamount,"global.scrollamount","Show or set scroll amount when using mouse wheel") { + if (argc < 2) { + render_status_message("global.scrollamount=%d",global_config.scroll_amount); + } else { + global_config.scroll_amount = atoi(argv[1]); + } + return 0; +} + BIM_COMMAND(global_search_wraps,"wrapsearch","Enable search wrapping around from top or bottom") { if (argc < 2) { render_status_message("wrapsearch=%d",global_config.search_wraps);