diff options
author | Timo Sirainen <cras@irssi.org> | 2001-10-27 11:47:59 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-10-27 11:47:59 +0000 |
commit | 8567481fd058a9f66c76a55e02305c97153b7588 (patch) | |
tree | 950de5c46e3b8b14afb8f3c395e18a567b484f3b | |
parent | 67cee57fb905ecce2dca2068723a48e6d5142286 (diff) | |
download | irssi-8567481fd058a9f66c76a55e02305c97153b7588.zip |
When scrolling window with eg. scroll_page_count /2, irssi didn't
remove window's statusbars lines when calculating number of lines to
scroll.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1923 dbcabf3a-b0e7-0310-adc4-f8d773084564
-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; } |