diff options
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) | |||
| 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 | } |