Commit 2581513a authored by Eli Zaretskii's avatar Eli Zaretskii

Avoid assertion violations when resize-mini-windows is nil

* src/xdisp.c (resize_mini_window): Always reset the
mini-window's start point to the beginning of the buffer, even
if resizing is not needed.  This avoids assertion violations
when resize-mini-windows is nil.  (Bug#36595)
parent 40cd6278
Pipeline #2365 passed with stage
in 55 minutes and 23 seconds
......@@ -11392,17 +11392,17 @@ resize_mini_window (struct window *w, bool exact_p)
if (!NILP (Vinhibit_redisplay))
return false;
/* By default, start display at the beginning. */
set_marker_both (w->start, w->contents,
BUF_BEGV (XBUFFER (w->contents)),
BUF_BEGV_BYTE (XBUFFER (w->contents)));
/* Nil means don't try to resize. */
if ((NILP (Vresize_mini_windows)
&& (NILP (resize_mini_frames) || !FRAME_MINIBUF_ONLY_P (f)))
|| (FRAME_X_P (f) && FRAME_OUTPUT_DATA (f) == NULL))
return false;
/* By default, start display at the beginning. */
set_marker_both (w->start, w->contents,
BUF_BEGV (XBUFFER (w->contents)),
BUF_BEGV_BYTE (XBUFFER (w->contents)));
if (FRAME_MINIBUF_ONLY_P (f))
{
if (!NILP (resize_mini_frames))
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