]> git.eshelyaron.com Git - emacs.git/commitdiff
(display_text_line): Truncate the minibuf_prompt if nec.
authorRichard M. Stallman <rms@gnu.org>
Sun, 30 Oct 1994 21:02:06 +0000 (21:02 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 30 Oct 1994 21:02:06 +0000 (21:02 +0000)
src/xdisp.c

index 1ee0317084604129bf9432b22c37703018fe4086..50fc2ae7637da04bc455cc4865d050c1341bed1d 100644 (file)
@@ -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;
        }