changeset 5340:fcd6e0da3380

(redisplay_window): Before altering lpoint, make sure the buffer it pertains to is the one being displayed.
author Richard M. Stallman <rms@gnu.org>
date Sat, 25 Dec 1993 00:05:02 +0000
parents b589e807c0b3
children 2f4fab6070b8
files src/xdisp.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Fri Dec 24 23:12:07 1993 +0000
+++ b/src/xdisp.c	Sat Dec 25 00:05:02 1993 +0000
@@ -1095,7 +1095,8 @@
 	    Fset_marker (w->pointm, make_number (point), Qnil);
 	  else
 	    {
-	      lpoint = point;
+	      if (current_buffer == old)
+		lpoint = point;
 	      FRAME_CURSOR_X (f) = max (0, pos.hpos) + XFASTINT (w->left);
 	      FRAME_CURSOR_Y (f) = pos.vpos + XFASTINT (w->top);
 	    }