diff options
-rw-r--r-- | src/fe-text/gui-readline.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c index b52fb3a9..a9417de7 100644 --- a/src/fe-text/gui-readline.c +++ b/src/fe-text/gui-readline.c @@ -97,8 +97,9 @@ static int get_scroll_count(void) else if (count < 1) count = 1.0/count; - if (*str == '/') - count = WINDOW_GUI(active_win)->parent->height/count; + if (*str == '/') { + count = (active_mainwin->height-active_mainwin->statusbar_lines)/count; + } return (int)count; } |