]> git.eshelyaron.com Git - emacs.git/commitdiff
(redisplay_internal): Don't clear echo area if the
authorGerd Moellmann <gerd@gnu.org>
Fri, 19 Oct 2001 11:08:25 +0000 (11:08 +0000)
committerGerd Moellmann <gerd@gnu.org>
Fri, 19 Oct 2001 11:08:25 +0000 (11:08 +0000)
mini-window is selected.

src/xdisp.c

index 6f96126a96d1445dd99c3f4e97c1e9f1143c359b..31da1badd49955a7b65c17ccfd213e03034e3efd 100644 (file)
@@ -8473,7 +8473,11 @@ redisplay_internal (preserve_echo_area)
      the echo area should be cleared.  */
   if ((!NILP (echo_area_buffer[0]) && !display_last_displayed_message_p)
       || (!NILP (echo_area_buffer[1]) && display_last_displayed_message_p)
-      || (message_cleared_p && minibuf_level == 0))
+      || (message_cleared_p
+         && minibuf_level == 0
+         /* If the mini-window is currently selected, this means the
+            echo-area doesn't show through.  */
+         && !MINI_WINDOW_P (XWINDOW (selected_window))))
     {
       int window_height_changed_p = echo_area_display (0);
       must_finish = 1;