changeset 22011:e849b602b425

(redisplay_window): Don't use last_point_x and last_point_y if cursor_in_echo_area.
author Richard M. Stallman <rms@gnu.org>
date Sun, 10 May 1998 00:40:00 +0000
parents 547e4c0a42c0
children 4379a41b6f2e
files src/xdisp.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Sat May 09 23:55:27 1998 +0000
+++ b/src/xdisp.c	Sun May 10 00:40:00 1998 +0000
@@ -2037,13 +2037,17 @@
       /* Find where PT is located now on the frame.  */
       /* Check just_this_one as a way of verifying that the 
 	 window edges have not changed.  */
-      if (PT == XFASTINT (w->last_point) && just_this_one)
+      if (PT == XFASTINT (w->last_point) && just_this_one
+	  /* If CURSOR_IN_ECHO_AREA, last_point_x and last_point_y
+	     refer to the echo area and are not related to this window.  */
+	  && ! cursor_in_echo_area)
 	{
 	  pos.hpos = last_point_x;
 	  pos.vpos = last_point_y;
 	  pos.bufpos = PT;
 	}
       else if (PT > XFASTINT (w->last_point)
+	       && ! cursor_in_echo_area
 	       && XFASTINT (w->last_point) > startp && just_this_one
 	       /* We can't use this if point is in the left margin of a
 		  hscrolled window, because w->last_point_x has been