From: root Date: Mon, 26 Dec 2005 23:12:59 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=c6c0321e56e522e9548cf9b2c62dfe4cf3fa57b2;p=dana%2Furxvt.git *** empty log message *** --- diff --git a/Changes b/Changes index a8045347..61e1be81 100644 --- 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 index 26c19a24..96a2e098 100644 --- 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);