diff src/indent.c @ 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 4fcc66cf0b9c
children 7d7e154e3e7a 4ee39d9428b0 fb79180b618d
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));
     }