# HG changeset patch # User Richard M. Stallman # Date 869120976 0 # Node ID efc598630ee94ca60f0434bcb29331451eb9d466 # Parent 4837387f683c61523fbebd23b0423db8fe5b45bd (display_text_line): Handle the case of point being in the invisible part of the line beyond the left margin. diff -r 4837387f683c -r efc598630ee9 src/xdisp.c --- a/src/xdisp.c Thu Jul 17 06:24:48 1997 +0000 +++ b/src/xdisp.c Thu Jul 17 06:29:36 1997 +0000 @@ -2993,6 +2993,16 @@ next_boundary = pos; p1prev = p1; prevpos = pos; + + /* If the window is hscrolled and point is in the invisible part of the + current line beyond the left margin we can record the cursor location + right away. */ + if (hscroll && start <= PT && PT < pos && cursor_vpos < 0) + { + cursor_vpos = vpos; + cursor_hpos = p1 - leftmargin; + } + while (p1 < endp) { if (pos >= pause)