aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1995-02-03 10:25:44 +0000
committerRichard M. Stallman <[email protected]>1995-02-03 10:25:44 +0000
commit2b050fec1ec0c72d0e972337d40cee69aea36d42 (patch)
treea6da5ab5bb4121cee2f5f6cd5e319b33a8e88202
parent08960da1562b5f3246c44e566a5743f5a38eb1ee (diff)
(display_text_line): Deduct minibuf prompt from taboffset.
(try_window): Deduct minibuf prompt from tab_offset, after 1st line.
-rw-r--r--src/xdisp.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 37f1300b26..b04f545130 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -1542,6 +1542,14 @@ try_window (window, pos)
{
val = *display_text_line (w, pos, vpos, val.hpos, tab_offset);
tab_offset += width;
+ /* For the first line displayed, display_text_line
+ subtracts the prompt width from the tab offset.
+ But it does not affect the value of our variable tab_offset.
+ So we do the subtraction again,
+ for the sake of continuation lines of that first line. */
+ if (MINI_WINDOW_P (w) && vpos == XFASTINT (w->top))
+ tab_offset -= minibuf_prompt_width;
+
if (val.vpos) tab_offset = 0;
vpos++;
if (pos != val.bufpos)
@@ -2257,6 +2265,7 @@ display_text_line (w, start, vpos, hpos, taboffset)
w->width > 10 ? w->width - 4 : -1)
- hpos);
hpos += minibuf_prompt_width;
+ taboffset -= minibuf_prompt_width;
}
else
minibuf_prompt_width = 0;