aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1995-02-03 10:25:44 +0000
committerRichard M. Stallman1995-02-03 10:25:44 +0000
commit2b050fec1ec0c72d0e972337d40cee69aea36d42 (patch)
treea6da5ab5bb4121cee2f5f6cd5e319b33a8e88202 /src
parent08960da1562b5f3246c44e566a5743f5a38eb1ee (diff)
downloademacs-2b050fec1ec0c72d0e972337d40cee69aea36d42.tar.gz
emacs-2b050fec1ec0c72d0e972337d40cee69aea36d42.zip
(display_text_line): Deduct minibuf prompt from taboffset.
(try_window): Deduct minibuf prompt from tab_offset, after 1st line.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 37f1300b266..b04f5451306 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -1542,6 +1542,14 @@ try_window (window, pos)
1542 { 1542 {
1543 val = *display_text_line (w, pos, vpos, val.hpos, tab_offset); 1543 val = *display_text_line (w, pos, vpos, val.hpos, tab_offset);
1544 tab_offset += width; 1544 tab_offset += width;
1545 /* For the first line displayed, display_text_line
1546 subtracts the prompt width from the tab offset.
1547 But it does not affect the value of our variable tab_offset.
1548 So we do the subtraction again,
1549 for the sake of continuation lines of that first line. */
1550 if (MINI_WINDOW_P (w) && vpos == XFASTINT (w->top))
1551 tab_offset -= minibuf_prompt_width;
1552
1545 if (val.vpos) tab_offset = 0; 1553 if (val.vpos) tab_offset = 0;
1546 vpos++; 1554 vpos++;
1547 if (pos != val.bufpos) 1555 if (pos != val.bufpos)
@@ -2257,6 +2265,7 @@ display_text_line (w, start, vpos, hpos, taboffset)
2257 w->width > 10 ? w->width - 4 : -1) 2265 w->width > 10 ? w->width - 4 : -1)
2258 - hpos); 2266 - hpos);
2259 hpos += minibuf_prompt_width; 2267 hpos += minibuf_prompt_width;
2268 taboffset -= minibuf_prompt_width;
2260 } 2269 }
2261 else 2270 else
2262 minibuf_prompt_width = 0; 2271 minibuf_prompt_width = 0;