1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-08 04:26:01 -04:00

make negative scroll_page_count scroll screensize-n lines (Patch by Chris Moore)

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4232 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Wouter Coekaerts 2006-02-01 09:56:42 +00:00 committed by coekie
parent 5da4a4fe89
commit 945d10ebb7

View File

@ -127,8 +127,10 @@ static int get_scroll_count(void)
str = settings_get_str("scroll_page_count");
count = atof(str + (*str == '/'));
if (count <= 0)
if (count == 0)
count = 1;
else if (count < 0)
count = active_mainwin->height-active_mainwin->statusbar_lines+count;
else if (count < 1)
count = 1.0/count;