repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: 4112e1b8c3fcdfe2ad7048e68bd4c38538175d91: path_to: revision_to:
commit 4112e1b8c3fcdfe2ad7048e68bd4c38538175d91 Author: Marc LehmannDate: Mon Dec 26 23:12:59 2005 +0000 *** empty log message *** diff --git a/Changes b/Changes
--- 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.
diff --git a/src/screen.C b/src/screen.C
--- a/src/screen.C
+++ b/src/screen.C
@@ -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);
-----END OF PAGE-----