From 5bf3adc151761c3bba733951601476ad5ea5f1b3 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 12 Dec 2004 18:16:53 +0000 Subject: [PATCH] (Fvertical_motion): Call move_it_by_lines even if LINES = 0. --- src/indent.c | 5 +++-- 1 file 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)); } -- 2.39.2