aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1993-06-09 07:21:28 +0000
committerJim Blandy1993-06-09 07:21:28 +0000
commit5fcbb24d47689c33f61ede0cbd3aa824835026a8 (patch)
tree8201ee0ca03bc30c2a17b9699060ee1592133220 /src
parente4571a43ea12a95a30e6a503db49e85ca5ef4d71 (diff)
downloademacs-5fcbb24d47689c33f61ede0cbd3aa824835026a8.tar.gz
emacs-5fcbb24d47689c33f61ede0cbd3aa824835026a8.zip
* 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.c16
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)
1665 register unsigned char *p; 1665 register unsigned char *p;
1666 GLYPH *endp; 1666 GLYPH *endp;
1667 register GLYPH *startp; 1667 register GLYPH *startp;
1668 register GLYPH *p1prev; 1668 register GLYPH *p1prev = 0;
1669 FRAME_PTR f = XFRAME (w->frame); 1669 FRAME_PTR f = XFRAME (w->frame);
1670 int tab_width = XINT (current_buffer->tab_width); 1670 int tab_width = XINT (current_buffer->tab_width);
1671 int ctl_arrow = !NILP (current_buffer->ctl_arrow); 1671 int ctl_arrow = !NILP (current_buffer->ctl_arrow);
@@ -1932,10 +1932,16 @@ display_text_line (w, start, vpos, hpos, taboffset)
1932 /* by backing up over it */ 1932 /* by backing up over it */
1933 if (p1 > endp) 1933 if (p1 > endp)
1934 { 1934 {
1935 /* Start the next line with that same character */ 1935 /* Don't back up if we never actually displayed any text.
1936 pos--; 1936 This occurs when the minibuffer prompt takes up the whole line. */
1937 /* but at a negative hpos, to skip the columns output on this line. */ 1937 if (p1prev)
1938 val.hpos += p1prev - endp; 1938 {
1939 /* Start the next line with that same character */
1940 pos--;
1941 /* but at negative hpos, to skip the columns output on this line. */
1942 val.hpos += p1prev - endp;
1943 }
1944
1939 /* Keep in this line everything up to the continuation column. */ 1945 /* Keep in this line everything up to the continuation column. */
1940 p1 = endp; 1946 p1 = endp;
1941 } 1947 }