Mercurial > emacs
diff src/indent.c @ 69103:98dc9c749829
(Fvertical_motion): Only try to move back if we can.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Wed, 22 Feb 2006 20:29:41 +0000 |
parents | 3bd95f4f2941 |
children | 2cc5d85e63a1 856efda75a1b 34c8b755296d |
line wrap: on
line diff
--- a/src/indent.c Wed Feb 22 20:29:24 2006 +0000 +++ b/src/indent.c Wed Feb 22 20:29:41 2006 +0000 @@ -2107,7 +2107,8 @@ 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)); }