changeset 16069:8fe5e69de92a

(redisplay_internal): Test last_selected_window slot. (mark_window_display_accurate, display_text_line): Likewise.
author Richard M. Stallman <rms@gnu.org>
date Mon, 02 Sep 1996 05:19:13 +0000
parents b19129a8c644
children 5aa311b84644
files src/xdisp.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Mon Sep 02 05:13:11 1996 +0000
+++ b/src/xdisp.c	Mon Sep 02 05:19:13 1996 +0000
@@ -1023,6 +1023,7 @@
 	 then we can't just move the cursor.  */
       else if (! (!NILP (Vtransient_mark_mode)
 		  && !NILP (current_buffer->mark_active))
+	       && w == XWINDOW (current_buffer->last_selected_window)
 	       && NILP (w->region_showing)
 	       && !cursor_in_echo_area)
 	{
@@ -1279,6 +1280,7 @@
 	  /* Record if we are showing a region, so can make sure to
 	     update it fully at next redisplay.  */
 	  w->region_showing = (!NILP (Vtransient_mark_mode)
+			       && w == XWINDOW (current_buffer->last_selected_window)
 			       && !NILP (XBUFFER (w->buffer)->mark_active)
 			       ? Fmarker_position (XBUFFER (w->buffer)->mark)
 			       : Qnil);
@@ -2557,7 +2559,8 @@
 
   /* 1 if we should highlight the region.  */
   int highlight_region
-    = !NILP (Vtransient_mark_mode) && !NILP (current_buffer->mark_active);
+    = (!NILP (Vtransient_mark_mode) && !NILP (current_buffer->mark_active)
+       && XWINDOW (current_buffer->last_selected_window) == w);
   int region_beg, region_end;
 
   int selective = (INTEGERP (current_buffer->selective_display)