From: Richard M. Stallman Date: Sun, 30 Oct 1994 21:02:06 +0000 (+0000) Subject: (display_text_line): Truncate the minibuf_prompt if nec. X-Git-Tag: emacs-19.34~6099 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ce006f691a2ee71b538ec4d65baf33c8943e0216;p=emacs.git (display_text_line): Truncate the minibuf_prompt if nec. --- diff --git a/src/xdisp.c b/src/xdisp.c index 1ee03170846..50fc2ae7637 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -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; }