aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c3
1 files changed, 2 insertions, 1 deletions
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)
1095 Fset_marker (w->pointm, make_number (point), Qnil); 1095 Fset_marker (w->pointm, make_number (point), Qnil);
1096 else 1096 else
1097 { 1097 {
1098 lpoint = point; 1098 if (current_buffer == old)
1099 lpoint = point;
1099 FRAME_CURSOR_X (f) = max (0, pos.hpos) + XFASTINT (w->left); 1100 FRAME_CURSOR_X (f) = max (0, pos.hpos) + XFASTINT (w->left);
1100 FRAME_CURSOR_Y (f) = pos.vpos + XFASTINT (w->top); 1101 FRAME_CURSOR_Y (f) = pos.vpos + XFASTINT (w->top);
1101 } 1102 }