Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > cd55f986918c57227820d06560805bef > files > 5

bogl-0.1.18-13.el5.src.rpm

diff -up bogl-0.1.18/bogl-term.c.original bogl-0.1.18/bogl-term.c
--- bogl-0.1.18/bogl-term.c.original	2009-08-17 23:43:22.000000000 +0900
+++ bogl-0.1.18/bogl-term.c	2009-08-17 23:44:11.000000000 +0900
@@ -465,6 +465,7 @@ bogl_term_out (struct bogl_term *term, c
                     /* Move all other lines down.  Fortunately, this is easy.  */
                     dirty_backscroll(term);
                     term->yorig--;
+                    if(term->yorig==-1) term->yorig=term->ysize-1;
 
                     /* Clear the top line.  */
                     for (i = SCR (0, 0); i < SCR (term->xsize, 0); i++)