changeset 38835:633ee3b8d9f3

(move_it_by_lines) <DVPOS < 0>: Start at the beginning of the screen line, not text line, containing IT's current position.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 16 Aug 2001 08:40:15 +0000
parents 3b44716c4df4
children 11c160d3ff7d
files src/xdisp.c
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Thu Aug 16 07:40:51 2001 +0000
+++ b/src/xdisp.c	Thu Aug 16 08:40:15 2001 +0000
@@ -5477,11 +5477,9 @@
       struct it it2;
       int start_charpos, i;
       
-      /* If we start in the middle of a line, move to the beginning
-	 of that line first.  */
-      if (IT_CHARPOS (*it) > BEGV
-	  && FETCH_BYTE (IT_BYTEPOS (*it) - 1) != '\n')
-	back_to_previous_visible_line_start (it);
+      /* Start at the beginning of the screen line containing IT's
+	 position.  */
+      move_it_vertically_backward (it, 0);
       
       /* Go back -DVPOS visible lines and reseat the iterator there.  */
       start_charpos = IT_CHARPOS (*it);