diff options
| author | Richard M. Stallman | 1995-06-28 09:39:00 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-06-28 09:39:00 +0000 |
| commit | b6f0fe04c00c3555438b2019e7154ffd3270701a (patch) | |
| tree | 11e080a08a736d32670b6d051c9898f48ee76c5d /src | |
| parent | 48cf7030fc311579ca7aeb7cd86b726487918205 (diff) | |
| download | emacs-b6f0fe04c00c3555438b2019e7154ffd3270701a.tar.gz emacs-b6f0fe04c00c3555438b2019e7154ffd3270701a.zip | |
(echo_area_display): Don't set FRAME_CURSOR_... here.
(redisplay): In the "point hasn't moved" shortcut,
make sure that the cursor is in the right window already.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 35a8ab4db4f..8438a4e819b 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -572,11 +572,13 @@ echo_area_display () | |||
| 572 | echo_area_glyphs ? echo_area_glyphs_length : -1, | 572 | echo_area_glyphs ? echo_area_glyphs_length : -1, |
| 573 | 0, 0, 0, 0, FRAME_WIDTH (f)); | 573 | 0, 0, 0, 0, FRAME_WIDTH (f)); |
| 574 | 574 | ||
| 575 | #if 0 /* This just gets in the way. update_frame does the job. */ | ||
| 575 | /* If desired cursor location is on this line, put it at end of text */ | 576 | /* If desired cursor location is on this line, put it at end of text */ |
| 576 | if (cursor_in_echo_area) | 577 | if (cursor_in_echo_area) |
| 577 | FRAME_CURSOR_Y (f) = vpos; | 578 | FRAME_CURSOR_Y (f) = vpos; |
| 578 | if (FRAME_CURSOR_Y (f) == vpos) | 579 | if (FRAME_CURSOR_Y (f) == vpos) |
| 579 | FRAME_CURSOR_X (f) = FRAME_DESIRED_GLYPHS (f)->used[vpos]; | 580 | FRAME_CURSOR_X (f) = FRAME_DESIRED_GLYPHS (f)->used[vpos]; |
| 581 | #endif | ||
| 580 | 582 | ||
| 581 | /* Fill the rest of the minibuffer window with blank lines. */ | 583 | /* Fill the rest of the minibuffer window with blank lines. */ |
| 582 | { | 584 | { |
| @@ -927,7 +929,12 @@ redisplay () | |||
| 927 | else | 929 | else |
| 928 | goto cancel; | 930 | goto cancel; |
| 929 | } | 931 | } |
| 930 | else if (PT == XFASTINT (w->last_point)) | 932 | else if (PT == XFASTINT (w->last_point) |
| 933 | /* Make sure the cursor was last displayed | ||
| 934 | in this window. Otherwise we have to reposition it. */ | ||
| 935 | && XINT (w->top) <= FRAME_CURSOR_Y (selected_frame) | ||
| 936 | && (XINT (w->top) + XINT (w->height) | ||
| 937 | > FRAME_CURSOR_Y (selected_frame))) | ||
| 931 | { | 938 | { |
| 932 | if (!must_finish) | 939 | if (!must_finish) |
| 933 | { | 940 | { |