Mercurial > hg > xemacs-beta
diff src/redisplay.c @ 343:8bec6624d99b r21-1-1
Import from CVS: tag r21-1-1
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:52:53 +0200 |
parents | afd57c14dfc8 |
children | 7347b34c275b |
line wrap: on
line diff
--- a/src/redisplay.c Mon Aug 13 10:52:06 2007 +0200 +++ b/src/redisplay.c Mon Aug 13 10:52:53 2007 +0200 @@ -5236,8 +5236,9 @@ Bufpos end = (w->window_end_pos[DESIRED_DISP] == -1 ? BUF_ZV (b) : BUF_Z (b) - w->window_end_pos[DESIRED_DISP] - 1); - - update_line_start_cache (w, start, end, pointm, 1); + /* Don't pollute the cache if not sure if we are correct */ + if (w->start_at_line_beg) + update_line_start_cache (w, start, end, pointm, 1); redisplay_output_window (w); /* * If we just displayed the echo area, the line start cache is @@ -6239,7 +6240,7 @@ else { struct line_start_cache lsc; - + lsc.start = dl->bufpos; lsc.end = dl->end_bufpos; lsc.height = dl->ascent + dl->descent;