diff options
| author | Richard M. Stallman | 1993-12-25 00:05:02 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-12-25 00:05:02 +0000 |
| commit | 9d6a6bb9b90dfb20c7282b08d43834bb93aa4f51 (patch) | |
| tree | ca21dd30e1170a0d17bf4124475e8e400c6e018d /src | |
| parent | abae13bd2cb9fa2736ac1a12920f82dfd46bc1bd (diff) | |
| download | emacs-9d6a6bb9b90dfb20c7282b08d43834bb93aa4f51.tar.gz emacs-9d6a6bb9b90dfb20c7282b08d43834bb93aa4f51.zip | |
(redisplay_window): Before altering lpoint,
make sure the buffer it pertains to is the one being displayed.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 3 |
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 | } |