aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c9
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 {