Commit ce006f69 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(display_text_line): Truncate the minibuf_prompt if nec.

parent ae921e6f
......@@ -2147,8 +2147,13 @@ display_text_line (w, start, vpos, hpos, taboffset)
minibuf_prompt_width
= (display_string (w, vpos, XSTRING (minibuf_prompt)->data,
XSTRING (minibuf_prompt)->size, hpos,
(!truncate ? continuer : truncator),
1, -1, -1)
/* Display a space if we truncate. */
' ',
1, -1,
/* Truncate the prompt a little before the
margin, so user input can at least start
on the first line. */
w->width > 10 ? w->width - 4 : -1)
- hpos);
hpos += minibuf_prompt_width;
}
......
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