aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1994-04-07 04:22:54 +0000
committerKarl Heuer1994-04-07 04:22:54 +0000
commitf7b4b63a792c5f4703092095c963423cf765af2a (patch)
tree29e1132a92ff82baeef45a05f5d059b68cbefc76 /src
parentc5896ef4eb6e54b81de0a3855a1ef1ae12eb112a (diff)
downloademacs-f7b4b63a792c5f4703092095c963423cf765af2a.tar.gz
emacs-f7b4b63a792c5f4703092095c963423cf765af2a.zip
(display_text_line): minibuffer_prompt_width is a distance, not an absolute
position.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 8b762bea4d9..db0515d04c5 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -2076,10 +2076,16 @@ display_text_line (w, start, vpos, hpos, taboffset)
2076 && vpos == XFASTINT (w->top)) 2076 && vpos == XFASTINT (w->top))
2077 { 2077 {
2078 if (minibuf_prompt) 2078 if (minibuf_prompt)
2079 hpos = display_string (w, vpos, minibuf_prompt, -1, hpos, 2079 {
2080 minibuf_prompt_width
2081 = (display_string (w, vpos, minibuf_prompt, -1, hpos,
2080 (!truncate ? continuer : truncator), 2082 (!truncate ? continuer : truncator),
2081 1, -1, -1); 2083 1, -1, -1)
2082 minibuf_prompt_width = hpos; 2084 - hpos);
2085 hpos += minibuf_prompt_width;
2086 }
2087 else
2088 minibuf_prompt_width = 0;
2083 } 2089 }
2084 2090
2085 desired_glyphs->bufp[vpos] = pos; 2091 desired_glyphs->bufp[vpos] = pos;