diff options
| author | Richard M. Stallman | 1997-07-26 01:41:03 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-07-26 01:41:03 +0000 |
| commit | 12a274bfe39d571db78cc0bfc3c253386a64726b (patch) | |
| tree | 31d442d86ffb68daefcabfca6743c19d078819c6 /src | |
| parent | ccc1cac01682ab7c0e9d72d8b022eb84684b3a44 (diff) | |
| download | emacs-12a274bfe39d571db78cc0bfc3c253386a64726b.tar.gz emacs-12a274bfe39d571db78cc0bfc3c253386a64726b.zip | |
(display_text_line): Don't count minibuf_prompt_width twice in taboffset.
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; |