diff options
author | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-06-03 20:05:03 +0000 |
---|---|---|
committer | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-06-03 20:05:03 +0000 |
commit | d77fe5bd516a7085fd24ecd939e6b0816e2a9489 (patch) | |
tree | 53b3f41c6d659ceec6567729fbdcde6ffda4f908 /action.c | |
parent | 496988052f0ac6c21bfeb10879f61931a647d759 (diff) | |
download | dzen-d77fe5bd516a7085fd24ecd939e6b0816e2a9489.tar.gz dzen-d77fe5bd516a7085fd24ecd939e6b0816e2a9489.zip |
fixed bug in scroll
git-svn-id: http://dzen.googlecode.com/svn/trunk@62 f2baff5b-bf2c-0410-a398-912abdc3d8b2
Diffstat (limited to 'action.c')
-rw-r--r-- | action.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -231,8 +231,10 @@ a_togglestick(char * opt[]) { return 0; } -void +int scroll(int n) { + if(dzen.slave_win.last_line_vis < dzen.slave_win.max_lines) + return; if(dzen.slave_win.first_line_vis + n < 0) { dzen.slave_win.first_line_vis = 0; dzen.slave_win.last_line_vis = dzen.slave_win.max_lines; |