comparison src/xdisp.c @ 3937:adcbf7680a35

* xdisp.c (redisplay): If we're not already showing the region, then don't disable the single-line optimizations just because the mark isn't where we last displayed it.
author Jim Blandy <jimb@redhat.com>
date Wed, 30 Jun 1993 21:30:25 +0000
parents ef6a4d39634b
children abd79e187610
comparison
equal deleted inserted replaced
3936:d42ad851d210 3937:adcbf7680a35
433 433
434 /* If showing region, and mark has changed, must redisplay whole window. */ 434 /* If showing region, and mark has changed, must redisplay whole window. */
435 if (((!NILP (Vtransient_mark_mode) 435 if (((!NILP (Vtransient_mark_mode)
436 && !NILP (XBUFFER (w->buffer)->mark_active)) 436 && !NILP (XBUFFER (w->buffer)->mark_active))
437 != !NILP (w->region_showing)) 437 != !NILP (w->region_showing))
438 || !EQ (w->region_showing, 438 || (!NILP (w->region_showing)
439 Fmarker_position (XBUFFER (w->buffer)->mark))) 439 && !EQ (w->region_showing,
440 Fmarker_position (XBUFFER (w->buffer)->mark))))
440 this_line_bufpos = -1; 441 this_line_bufpos = -1;
441 442
442 tlbufpos = this_line_bufpos; 443 tlbufpos = this_line_bufpos;
443 tlendpos = this_line_endpos; 444 tlendpos = this_line_endpos;
444 if (!all_windows && tlbufpos > 0 && NILP (w->update_mode_line) 445 if (!all_windows && tlbufpos > 0 && NILP (w->update_mode_line)