summaryrefslogtreecommitdiff
path: root/src/fe-text/gui-readline.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-text/gui-readline.c')
-rw-r--r--src/fe-text/gui-readline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c
index 9f2e22e8..1f54190a 100644
--- a/src/fe-text/gui-readline.c
+++ b/src/fe-text/gui-readline.c
@@ -101,7 +101,7 @@ static int get_scroll_count(void)
count = 1.0/count;
if (*str == '/')
- count = WINDOW_GUI(active_win)->parent->lines/count;
+ count = WINDOW_GUI(active_win)->parent->height/count;
return (int)count;
}