From: Richard M. Stallman Date: Sun, 12 Dec 2004 18:16:53 +0000 (+0000) Subject: (Fvertical_motion): Call move_it_by_lines even if LINES = 0. X-Git-Tag: ttn-vms-21-2-B4~3315 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5bf3adc151761c3bba733951601476ad5ea5f1b3;p=emacs.git (Fvertical_motion): Call move_it_by_lines even if LINES = 0. --- 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)); }