From 9d6a6bb9b90dfb20c7282b08d43834bb93aa4f51 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 25 Dec 1993 00:05:02 +0000 Subject: [PATCH] (redisplay_window): Before altering lpoint, make sure the buffer it pertains to is the one being displayed. --- src/xdisp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.39.5