(display_text_line): Handle the case of point being in
the invisible part of the line beyond the left margin.
This commit is contained in:
parent
1ba764decd
commit
1fca3fae80
1 changed files with 10 additions and 0 deletions
10
src/xdisp.c
10
src/xdisp.c
|
@ -2993,6 +2993,16 @@ display_text_line (w, start, vpos, hpos, taboffset, ovstr_done)
|
|||
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue