changeset 18994:015e9d877871

(display_text_line): Don't count minibuf_prompt_width twice in taboffset.
author Richard M. Stallman <rms@gnu.org>
date Sat, 26 Jul 1997 01:41:03 +0000
parents c3bfd473a4d3
children fbda8510ca84
files src/xdisp.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Sat Jul 26 01:40:05 1997 +0000
+++ b/src/xdisp.c	Sat Jul 26 01:41:03 1997 +0000
@@ -2919,6 +2919,8 @@
     {
       if (! NILP (minibuf_prompt))
 	{
+	  int old_width = minibuf_prompt_width;
+
 	  minibuf_prompt_width
 	    = (display_string (w, vpos, XSTRING (minibuf_prompt)->data,
 			       XSTRING (minibuf_prompt)->size, hpos,
@@ -2932,7 +2934,7 @@
 				? XFASTINT (w->width) - 4 : -1))
 	       - hpos);
 	  hpos += minibuf_prompt_width;
-	  taboffset -= minibuf_prompt_width;
+	  taboffset -= minibuf_prompt_width - old_width;
 	}
       else
 	minibuf_prompt_width = 0;