summaryrefslogtreecommitdiff
path: root/src/indent.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2004-12-12 18:16:53 +0000
committerRichard M. Stallman <rms@gnu.org>2004-12-12 18:16:53 +0000
commit19d61a1558ff301cbf4b2b31a87dd912a26f9b7b (patch)
tree36a3e95699d4a9a9a303113c462af00318807b25 /src/indent.c
parent57ab12a775ac3375e8d79bb48ae009f0f9b0e951 (diff)
downloademacs-19d61a1558ff301cbf4b2b31a87dd912a26f9b7b.tar.gz
(Fvertical_motion): Call move_it_by_lines even if LINES = 0.
Diffstat (limited to 'src/indent.c')
-rw-r--r--src/indent.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/indent.c b/src/indent.c
index b1af03b6977..49ee90b6360 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -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));
}