*** empty log message ***
authorroot <root>
Mon, 26 Dec 2005 23:12:59 +0000 (23:12 +0000)
committerroot <root>
Mon, 26 Dec 2005 23:12:59 +0000 (23:12 +0000)
Changes
src/screen.C

diff --git a/Changes b/Changes
index a804534..61e1be8 100644 (file)
--- a/Changes
+++ b/Changes
@@ -16,6 +16,8 @@ WISH: just for fun, do shade and tint with XRender.
           while the user still drags.
         - selections that were partially scrolled out of the window were
           not drawn correctly.
+        - lines newly scrolled in were not initialized properly, leading
+          to extremely long lines and (hopefully) some segfaults.
 
 6.0  Sat Dec 24 13:58:56 CET 2005
        - make it compile without SMART_RESIZE again.
index 26c19a2..96a2e09 100644 (file)
@@ -353,8 +353,14 @@ rxvt_term::scr_reset ()
                     }
                 }
 
-              qline->l = llen < ncol ? llen : MOD (llen - 1, ncol) + 1;
-              printf ("qline->l %d = llen %d < ncol %d ? %d : MOD %d\n", qline->l,llen,ncol,llen,MOD (llen - 1, ncol) + 1);//D
+              qline->l = llen ? MOD (llen - 1, ncol) + 1 : 0;
+#ifdef DEBUG_STRICT //TODO//FIXME//TEMPORARY
+              if (qline->l < 0)
+                {
+                  fprintf (stderr, "ERROR, PLEASE REPORT to rxvt-unicode@plan9.de: qline->l %d = llen %d < ncol %d ? %d : MOD %d\n", qline->l,llen,ncol,llen,MOD (llen - 1, ncol) + 1);//D
+                  qline->l = 0;
+                }
+#endif
               scr_blank_line (*qline, qline->l, ncol - qline->l, DEFAULT_RSTYLE);
             }
           while (p != pend && q > 0);