Fix $scroll only scrolls once
authorNikolas Garofil <garo@dunaldi.garofil.be>
Mon, 9 Nov 2009 01:38:20 +0000 (02:38 +0100)
committerNikolas Garofil <garo@dunaldi.garofil.be>
Mon, 9 Nov 2009 01:38:20 +0000 (02:38 +0100)
src/scroll.c

index 6d10cd7..fdef84f 100644 (file)
@@ -110,7 +110,7 @@ void print_scroll(struct text_object *obj, char *p, int p_max_size, struct infor
                        visibcolorchanges++;
                }
                //if there is still room fill it with spaces
-               if( ! p[j]) return;
+               if( ! p[j]) break;
        }
        for(; j < sd->show + visibcolorchanges; j++) {
                p[j] = ' ';