From ce006f691a2ee71b538ec4d65baf33c8943e0216 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 30 Oct 1994 21:02:06 +0000 Subject: [PATCH] (display_text_line): Truncate the minibuf_prompt if nec. --- src/xdisp.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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; } -- 2.39.5