From: Kim F. Storm Date: Wed, 22 Feb 2006 20:29:41 +0000 (+0000) Subject: (Fvertical_motion): Only try to move back if we can. X-Git-Tag: emacs-pretest-22.0.90~3942 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=78744fc3702626b26d56ab56704d27afdd6ea585;p=emacs.git (Fvertical_motion): Only try to move back if we can. --- diff --git a/src/indent.c b/src/indent.c index fa2acd0bc05..cc928f2171f 100644 --- a/src/indent.c +++ b/src/indent.c @@ -2107,7 +2107,8 @@ whether or not it is currently displayed in some window. */) it.vpos = 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); + if (XINT (lines) >= 0 || IT_CHARPOS (it) > 0) + move_it_by_lines (&it, XINT (lines), 0); SET_PT_BOTH (IT_CHARPOS (it), IT_BYTEPOS (it)); }