aboutsummaryrefslogtreecommitdiffstats
path: root/src/xdisp.c
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1997-07-17 06:29:36 +0000
committerRichard M. Stallman <[email protected]>1997-07-17 06:29:36 +0000
commit1fca3fae800a27dbe292463d9d9df5dcee30c6ae (patch)
tree71f35e9961fa420f821de4f03b8aa49b4697d820 /src/xdisp.c
parent1ba764decd5755041daf6befc92a04ba493f4f31 (diff)
(display_text_line): Handle the case of point being in
the invisible part of the line beyond the left margin.
Diffstat (limited to 'src/xdisp.c')
-rw-r--r--src/xdisp.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index d7c0bfe34b..8b41cf9717 100644
--- a/src/xdisp.c
+++ b/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)