# HG changeset patch # User Richard M. Stallman # Date 783550926 0 # Node ID bd5dc931e46e397fba6b6f153cd49fa2e642d3a5 # Parent 705684b6f2a46cf372a5a005ef26a7a7fc2373dc (display_text_line): Truncate the minibuf_prompt if nec. diff -r 705684b6f2a4 -r bd5dc931e46e src/xdisp.c --- 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; }