Mercurial > emacs
changeset 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 | 996de826e5cc |
children | 527507f1a62e |
files | src/indent.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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)); }