Mercurial > emacs
changeset 9756:bd5dc931e46e
(display_text_line): Truncate the minibuf_prompt if nec.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 30 Oct 1994 21:02:06 +0000 |
parents | 705684b6f2a4 |
children | 35d1324acc64 |
files | src/xdisp.c |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Sun Oct 30 20:12:53 1994 +0000 +++ b/src/xdisp.c Sun Oct 30 21:02:06 1994 +0000 @@ -2147,8 +2147,13 @@ 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; }