diff options
author | Kim F. Storm <storm@cua.dk> | 2006-02-22 20:29:41 +0000 |
---|---|---|
committer | Kim F. Storm <storm@cua.dk> | 2006-02-22 20:29:41 +0000 |
commit | aee64bb18abe9d6c9c171ec09fd462cf035e8851 (patch) | |
tree | 64ea558eab4c9e1a46a9e98f53052669f0ecd31e /src/indent.c | |
parent | d7c623eab9bb6beca840f86707b40b38b2f4f51e (diff) | |
download | emacs-aee64bb18abe9d6c9c171ec09fd462cf035e8851.tar.gz |
(Fvertical_motion): Only try to move back if we can.
Diffstat (limited to 'src/indent.c')
-rw-r--r-- | src/indent.c | 3 |
1 files changed, 2 insertions, 1 deletions
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)); } |