]> git.eshelyaron.com Git - emacs.git/commitdiff
(redisplay_window): Before altering lpoint,
authorRichard M. Stallman <rms@gnu.org>
Sat, 25 Dec 1993 00:05:02 +0000 (00:05 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 25 Dec 1993 00:05:02 +0000 (00:05 +0000)
make sure the buffer it pertains to is the one being displayed.

src/xdisp.c

index bb007713f6e5db8b4e2c4190679a8fc51f9d50d7..7b554b6f33119920158f565f8c085620349252b9 100644 (file)
@@ -1095,7 +1095,8 @@ redisplay_window (window, just_this_one)
            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);
            }