mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
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
This commit is contained in:
parent
67cee57fb9
commit
8567481fd0
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user