diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 80536a3c4cd..9d88cff44b8 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -2919,6 +2919,8 @@ display_text_line (w, start, vpos, hpos, taboffset, ovstr_done) | |||
| 2919 | { | 2919 | { |
| 2920 | if (! NILP (minibuf_prompt)) | 2920 | if (! NILP (minibuf_prompt)) |
| 2921 | { | 2921 | { |
| 2922 | int old_width = minibuf_prompt_width; | ||
| 2923 | |||
| 2922 | minibuf_prompt_width | 2924 | minibuf_prompt_width |
| 2923 | = (display_string (w, vpos, XSTRING (minibuf_prompt)->data, | 2925 | = (display_string (w, vpos, XSTRING (minibuf_prompt)->data, |
| 2924 | XSTRING (minibuf_prompt)->size, hpos, | 2926 | XSTRING (minibuf_prompt)->size, hpos, |
| @@ -2932,7 +2934,7 @@ display_text_line (w, start, vpos, hpos, taboffset, ovstr_done) | |||
| 2932 | ? XFASTINT (w->width) - 4 : -1)) | 2934 | ? XFASTINT (w->width) - 4 : -1)) |
| 2933 | - hpos); | 2935 | - hpos); |
| 2934 | hpos += minibuf_prompt_width; | 2936 | hpos += minibuf_prompt_width; |
| 2935 | taboffset -= minibuf_prompt_width; | 2937 | taboffset -= minibuf_prompt_width - old_width; |
| 2936 | } | 2938 | } |
| 2937 | else | 2939 | else |
| 2938 | minibuf_prompt_width = 0; | 2940 | minibuf_prompt_width = 0; |