Commit f7b4b63a authored by Karl Heuer's avatar Karl Heuer

(display_text_line): minibuffer_prompt_width is a distance, not an absolute

position.
parent c5896ef4
......@@ -2076,10 +2076,16 @@ display_text_line (w, start, vpos, hpos, taboffset)
&& vpos == XFASTINT (w->top))
{
if (minibuf_prompt)
hpos = display_string (w, vpos, minibuf_prompt, -1, hpos,
{
minibuf_prompt_width
= (display_string (w, vpos, minibuf_prompt, -1, hpos,
(!truncate ? continuer : truncator),
1, -1, -1);
minibuf_prompt_width = hpos;
1, -1, -1)
- hpos);
hpos += minibuf_prompt_width;
}
else
minibuf_prompt_width = 0;
}
desired_glyphs->bufp[vpos] = pos;
......
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