diff options
author | Jim Blandy <jimb@redhat.com> | 1993-06-09 07:21:28 +0000 |
---|---|---|
committer | Jim Blandy <jimb@redhat.com> | 1993-06-09 07:21:28 +0000 |
commit | 5fcbb24d47689c33f61ede0cbd3aa824835026a8 (patch) | |
tree | 8201ee0ca03bc30c2a17b9699060ee1592133220 /src | |
parent | e4571a43ea12a95a30e6a503db49e85ca5ef4d71 (diff) | |
download | emacs-5fcbb24d47689c33f61ede0cbd3aa824835026a8.tar.gz |
* xdisp.c (display_text_line): Handle case where line ends in a
continuation character but we never actually displayed any buffer
text (due to minibuffer prompt).
Diffstat (limited to 'src')
-rw-r--r-- | src/xdisp.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 2dc39a26169..6c6ee02a07d 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -1665,7 +1665,7 @@ display_text_line (w, start, vpos, hpos, taboffset) register unsigned char *p; GLYPH *endp; register GLYPH *startp; - register GLYPH *p1prev; + register GLYPH *p1prev = 0; FRAME_PTR f = XFRAME (w->frame); int tab_width = XINT (current_buffer->tab_width); int ctl_arrow = !NILP (current_buffer->ctl_arrow); @@ -1932,10 +1932,16 @@ display_text_line (w, start, vpos, hpos, taboffset) /* by backing up over it */ if (p1 > endp) { - /* Start the next line with that same character */ - pos--; - /* but at a negative hpos, to skip the columns output on this line. */ - val.hpos += p1prev - endp; + /* Don't back up if we never actually displayed any text. + This occurs when the minibuffer prompt takes up the whole line. */ + if (p1prev) + { + /* Start the next line with that same character */ + pos--; + /* but at negative hpos, to skip the columns output on this line. */ + val.hpos += p1prev - endp; + } + /* Keep in this line everything up to the continuation column. */ p1 = endp; } |