aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-10-30 21:02:06 +0000
committerRichard M. Stallman1994-10-30 21:02:06 +0000
commitce006f691a2ee71b538ec4d65baf33c8943e0216 (patch)
tree6acb8388c5ccd22c35e55f09d4c357b773eb6f2c /src
parentae921e6f5a55220fab1f4fddbe61c06bd7a1966f (diff)
downloademacs-ce006f691a2ee71b538ec4d65baf33c8943e0216.tar.gz
emacs-ce006f691a2ee71b538ec4d65baf33c8943e0216.zip
(display_text_line): Truncate the minibuf_prompt if nec.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c9
1 files 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)
2147 minibuf_prompt_width 2147 minibuf_prompt_width
2148 = (display_string (w, vpos, XSTRING (minibuf_prompt)->data, 2148 = (display_string (w, vpos, XSTRING (minibuf_prompt)->data,
2149 XSTRING (minibuf_prompt)->size, hpos, 2149 XSTRING (minibuf_prompt)->size, hpos,
2150 (!truncate ? continuer : truncator), 2150 /* Display a space if we truncate. */
2151 1, -1, -1) 2151 ' ',
2152 1, -1,
2153 /* Truncate the prompt a little before the
2154 margin, so user input can at least start
2155 on the first line. */
2156 w->width > 10 ? w->width - 4 : -1)
2152 - hpos); 2157 - hpos);
2153 hpos += minibuf_prompt_width; 2158 hpos += minibuf_prompt_width;
2154 } 2159 }