changeset 58909:e3754638899a

(Fvertical_motion): Call move_it_by_lines even if LINES = 0.
author Richard M. Stallman <rms@gnu.org>
date Sun, 12 Dec 2004 18:16:53 +0000
parents e1f3effbdccb
children cce663b649f6
files src/indent.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/indent.c	Sun Dec 12 18:15:22 2004 +0000
+++ b/src/indent.c	Sun Dec 12 18:16:53 2004 +0000
@@ -2092,8 +2092,9 @@
 	move_it_by_lines (&it, -1, 0);
 
       it.vpos = 0;
-      if (XINT (lines) != 0)
-	move_it_by_lines (&it, XINT (lines), 0);
+      /* Do this even if LINES is 0, so that we move back
+	 to the beginning of the current line as we ought.  */
+      move_it_by_lines (&it, XINT (lines), 0);
 
       SET_PT_BOTH (IT_CHARPOS (it), IT_BYTEPOS (it));
     }