diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index d7c0bfe34bc..8b41cf9717d 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -2993,6 +2993,16 @@ display_text_line (w, start, vpos, hpos, taboffset, ovstr_done) | |||
| 2993 | next_boundary = pos; | 2993 | next_boundary = pos; |
| 2994 | p1prev = p1; | 2994 | p1prev = p1; |
| 2995 | prevpos = pos; | 2995 | prevpos = pos; |
| 2996 | |||
| 2997 | /* If the window is hscrolled and point is in the invisible part of the | ||
| 2998 | current line beyond the left margin we can record the cursor location | ||
| 2999 | right away. */ | ||
| 3000 | if (hscroll && start <= PT && PT < pos && cursor_vpos < 0) | ||
| 3001 | { | ||
| 3002 | cursor_vpos = vpos; | ||
| 3003 | cursor_hpos = p1 - leftmargin; | ||
| 3004 | } | ||
| 3005 | |||
| 2996 | while (p1 < endp) | 3006 | while (p1 < endp) |
| 2997 | { | 3007 | { |
| 2998 | if (pos >= pause) | 3008 | if (pos >= pause) |