From: Richard M. Stallman Date: Wed, 28 Jun 1995 09:38:18 +0000 (+0000) Subject: (update_frame): Pretend cursor is in echo area X-Git-Tag: emacs-19.34~3450 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=48cf7030fc311579ca7aeb7cd86b726487918205;p=emacs.git (update_frame): Pretend cursor is in echo area rather than put it in a minuffer hidden by the echo area. --- diff --git a/src/dispnew.c b/src/dispnew.c index 48d5fd04f3d..953527b4377 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -1327,9 +1327,14 @@ update_frame (f, force, inhibit_hairy_id) /* Now just clean up termcap drivers and set cursor, etc. */ if (!pause) { - if (cursor_in_echo_area - && FRAME_HAS_MINIBUF_P (f) - && EQ (FRAME_MINIBUF_WINDOW (f), minibuf_window)) + if ((cursor_in_echo_area + && FRAME_HAS_MINIBUF_P (f) + && EQ (FRAME_MINIBUF_WINDOW (f), minibuf_window)) + /* If we are showing a message instead of the minibuffer, + show the cursor for the message instead of for the + (now hidden) minibuffer contents. */ + || (EQ (minibuf_window, selected_window) + && echo_area_glyphs != 0)) { int top = XINT (XWINDOW (FRAME_MINIBUF_WINDOW (f))->top); int row, col;