1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-29 00:31:01 -08:00

(display_text_line): Don't move the cursor if it's supposed to

be in the echo area.
(echo_area_display): Put cursor in echo area if appropriate.
This commit is contained in:
Karl Heuer 1995-05-02 02:17:21 +00:00
parent 00d96ada16
commit b5bbc9a59c

View file

@ -567,6 +567,8 @@ echo_area_display ()
0, 0, 0, 0, FRAME_WIDTH (f));
/* If desired cursor location is on this line, put it at end of text */
if (cursor_in_echo_area)
FRAME_CURSOR_Y (f) = vpos;
if (FRAME_CURSOR_Y (f) == vpos)
FRAME_CURSOR_X (f) = FRAME_DESIRED_GLYPHS (f)->used[vpos];
@ -2803,8 +2805,12 @@ display_text_line (w, start, vpos, hpos, taboffset)
cursor_hpos += XFASTINT (w->left);
if (w == XWINDOW (FRAME_SELECTED_WINDOW (f)))
{
FRAME_CURSOR_Y (f) = cursor_vpos;
FRAME_CURSOR_X (f) = cursor_hpos;
if (!(cursor_in_echo_area && FRAME_HAS_MINIBUF_P (f)
&& EQ (FRAME_MINIBUF_WINDOW (f), minibuf_window)))
{
FRAME_CURSOR_Y (f) = cursor_vpos;
FRAME_CURSOR_X (f) = cursor_hpos;
}
if (w == XWINDOW (selected_window))
{