From: Richard M. Stallman Date: Sat, 25 Dec 1993 00:05:02 +0000 (+0000) Subject: (redisplay_window): Before altering lpoint, X-Git-Tag: emacs-19.34~10511 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9d6a6bb9b90dfb20c7282b08d43834bb93aa4f51;p=emacs.git (redisplay_window): Before altering lpoint, make sure the buffer it pertains to is the one being displayed. --- diff --git a/src/xdisp.c b/src/xdisp.c index bb007713f6e..7b554b6f331 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -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); }