]> code.delx.au - gnu-emacs/commitdiff
(Fvertical_motion): Call move_it_by_lines even if LINES = 0.
authorRichard M. Stallman <rms@gnu.org>
Sun, 12 Dec 2004 18:16:53 +0000 (18:16 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 12 Dec 2004 18:16:53 +0000 (18:16 +0000)
src/indent.c

index b1af03b6977fd6dc851c76f5fc085ead082ec681..49ee90b636021b063cb84cbd653736dd9f5cabb9 100644 (file)
@@ -2092,8 +2092,9 @@ whether or not it is currently displayed in some window.  */)
        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));
     }