(echo_area_display): If cursor is in the echo area, make
authorGerd Moellmann <gerd@gnu.org>
Thu, 30 Nov 2000 21:57:27 +0000 (21:57 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 30 Nov 2000 21:57:27 +0000 (21:57 +0000)
sure that the next redisplay displays the minibuffer, so that
the cursor will be replaced with what the minibuffer wants.

src/ChangeLog
src/xdisp.c

index ba18459..4167ecf 100644 (file)
@@ -1,5 +1,9 @@
 2000-11-30  Gerd Moellmann  <gerd@gnu.org>
 
+       * xdisp.c (echo_area_display): If cursor is in the echo area, make
+       sure that the next redisplay displays the minibuffer, so that
+       the cursor will be replaced with what the minibuffer wants.
+
        * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
        #ifndef instead of using #if.
        (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
index 15e52cd..0ea22b6 100644 (file)
@@ -6631,6 +6631,12 @@ echo_area_display (update_frame_p)
            }
          else
            update_frame (f, 1, 1);
+
+         /* If cursor is in the echo area, make sure that the next
+            redisplay displays the minibuffer, so that the cursor will
+            be replaced with what the minibuffer wants.  */
+         if (cursor_in_echo_area)
+           ++windows_or_buffers_changed;
        }
     }
   else if (!EQ (mini_window, selected_window))