Commit 8f12e41d authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(command_loop_1): Resize mini-window to the

exact size of a message displayed, if any.
parent 2da8bf64
......@@ -1213,6 +1213,11 @@ command_loop_1 ()
if (!NILP (Vpost_command_hook) && !NILP (Vrun_hooks))
safe_run_hooks (Qpost_command_hook);
/* If displaying a message, resize the echo area window to fit
that message's size exactly. */
if (!NILP (echo_area_buffer[0]))
resize_echo_area_axactly ();
if (!NILP (Vdeferred_action_list))
call0 (Vdeferred_action_function);
......@@ -1517,6 +1522,11 @@ command_loop_1 ()
if (!NILP (Vpost_command_hook) && !NILP (Vrun_hooks))
safe_run_hooks (Qpost_command_hook);
/* If displaying a message, resize the echo area window to fit
that message's size exactly. */
if (!NILP (echo_area_buffer[0]))
resize_echo_area_axactly ();
if (!NILP (Vdeferred_action_list))
safe_run_hooks (Qdeferred_action_function);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment