diff options
Diffstat (limited to 'src/minibuf.c')
-rw-r--r-- | src/minibuf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/minibuf.c b/src/minibuf.c index b327f2d040a..b9bbaf5b186 100644 --- a/src/minibuf.c +++ b/src/minibuf.c @@ -655,7 +655,8 @@ read_minibuf (map, initial, prompt, backup_n, expflag, Lisp_Object root_window = Fframe_root_window (frame); Lisp_Object mini_window = XWINDOW (root_window)->next; - if (! NILP (mini_window) && !NILP (Fwindow_minibuffer_p (mini_window))) + if (! NILP (mini_window) && ! EQ (mini_window, minibuf_window) + && !NILP (Fwindow_minibuffer_p (mini_window))) Fset_window_buffer (mini_window, empty_minibuf, Qnil); } |