Mercurial > emacs
comparison src/xdisp.c @ 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 | 8c30e49ddc04 |
children | 4e3a6baa4750 |
comparison
equal
deleted
inserted
replaced
5339:b589e807c0b3 | 5340:fcd6e0da3380 |
---|---|
1093 SET_PT (pos.bufpos); | 1093 SET_PT (pos.bufpos); |
1094 if (w != XWINDOW (selected_window)) | 1094 if (w != XWINDOW (selected_window)) |
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 } |
1102 } | 1103 } |
1103 goto done; | 1104 goto done; |