changeset 18829:efc598630ee9

(display_text_line): Handle the case of point being in the invisible part of the line beyond the left margin.
author Richard M. Stallman <rms@gnu.org>
date Thu, 17 Jul 1997 06:29:36 +0000
parents 4837387f683c
children ac0f5f1912c0
files src/xdisp.c
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)