# HG changeset patch # User Gerd Moellmann # Date 977233039 0 # Node ID fc3693bea815fd7e82ac0aca2ebbb9d598ceb71b # Parent 57407418de93ec4996885b3754a628a7017cbaf8 (direct_output_for_insert): Fix check for mini-window currently displaying a message. diff -r 57407418de93 -r fc3693bea815 src/dispnew.c --- a/src/dispnew.c Tue Dec 19 13:03:33 2000 +0000 +++ b/src/dispnew.c Tue Dec 19 13:37:19 2000 +0000 @@ -3180,8 +3180,10 @@ || !display_completed /* Give up if buffer appears in two places. */ || buffer_shared > 1 - /* Give up if w is mini-buffer and a message is being displayed there */ - || (MINI_WINDOW_P (w) && !NILP (echo_area_buffer[0])) + /* Give up if currently displaying a message instead of the + minibuffer contents. */ + || (EQ (selected_window, minibuf_window) + && EQ (minibuf_window, echo_area_window)) /* Give up for hscrolled mini-buffer because display of the prompt is handled specially there (see display_line). */ || (MINI_WINDOW_P (w) && XFASTINT (w->hscroll))