From 8fa2d01a7fb6971993852ea87786c4b7eadf1edc Mon Sep 17 00:00:00 2001 From: Ailin Nemui Date: Fri, 11 Mar 2022 08:56:35 +0100 Subject: [PATCH] fix scroll_page_count settings with . --- src/fe-text/gui-readline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c index 8e1b66ff..88ea254b 100644 --- a/src/fe-text/gui-readline.c +++ b/src/fe-text/gui-readline.c @@ -163,7 +163,7 @@ static int get_scroll_count(void) else if (count < 1) count = 1.0/count; - if (*str == '/') { + if (*str == '/' || *str == '.') { count = (active_mainwin->height-active_mainwin->statusbar_lines)/count; } return (int)count;