mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05: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:
parent
5da4a4fe89
commit
945d10ebb7
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user