comparison 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
comparison
equal deleted inserted replaced
342:b036ce23deaa 343:8bec6624d99b
5234 { 5234 {
5235 Bufpos start = marker_position (w->start[DESIRED_DISP]); 5235 Bufpos start = marker_position (w->start[DESIRED_DISP]);
5236 Bufpos end = (w->window_end_pos[DESIRED_DISP] == -1 5236 Bufpos end = (w->window_end_pos[DESIRED_DISP] == -1
5237 ? BUF_ZV (b) 5237 ? BUF_ZV (b)
5238 : BUF_Z (b) - w->window_end_pos[DESIRED_DISP] - 1); 5238 : BUF_Z (b) - w->window_end_pos[DESIRED_DISP] - 1);
5239 5239 /* Don't pollute the cache if not sure if we are correct */
5240 update_line_start_cache (w, start, end, pointm, 1); 5240 if (w->start_at_line_beg)
5241 update_line_start_cache (w, start, end, pointm, 1);
5241 redisplay_output_window (w); 5242 redisplay_output_window (w);
5242 /* 5243 /*
5243 * If we just displayed the echo area, the line start cache is 5244 * If we just displayed the echo area, the line start cache is
5244 * no longer valid, because the minibuffer window is assocaited 5245 * no longer valid, because the minibuffer window is assocaited
5245 * with the window now. 5246 * with the window now.
6237 if (dl->modeline) 6238 if (dl->modeline)
6238 continue; 6239 continue;
6239 else 6240 else
6240 { 6241 {
6241 struct line_start_cache lsc; 6242 struct line_start_cache lsc;
6242 6243
6243 lsc.start = dl->bufpos; 6244 lsc.start = dl->bufpos;
6244 lsc.end = dl->end_bufpos; 6245 lsc.end = dl->end_bufpos;
6245 lsc.height = dl->ascent + dl->descent; 6246 lsc.height = dl->ascent + dl->descent;
6246 6247
6247 Dynarr_add (internal_cache, lsc); 6248 Dynarr_add (internal_cache, lsc);