comparison src/xdisp.c @ 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 976ef7da7753
children 1a75c4fe2ece
comparison
equal deleted inserted replaced
9755:705684b6f2a4 9756:bd5dc931e46e
2145 if (! NILP (minibuf_prompt)) 2145 if (! NILP (minibuf_prompt))
2146 { 2146 {
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 }
2155 else 2160 else
2156 minibuf_prompt_width = 0; 2161 minibuf_prompt_width = 0;