comparison src/xdisp.c @ 12410:1c02a5b45ae7

(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.
author Richard M. Stallman <rms@gnu.org>
date Wed, 28 Jun 1995 09:39:00 +0000
parents 7d39ee7e0ca3
children f92dc5a9194d
comparison
equal deleted inserted replaced
12409:6e374b28ecc3 12410:1c02a5b45ae7
570 display_string (XWINDOW (minibuf_window), vpos, 570 display_string (XWINDOW (minibuf_window), vpos,
571 echo_area_glyphs ? echo_area_glyphs : "", 571 echo_area_glyphs ? echo_area_glyphs : "",
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 {
583 int i; 585 int i;
584 586
925 goto update; 927 goto update;
926 } 928 }
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 {
934 do_pending_window_change (); 941 do_pending_window_change ();
935 return; 942 return;