summaryrefslogtreecommitdiff
path: root/src/indent.c
diff options
context:
space:
mode:
authorKaroly Lorentey <lorentey@elte.hu>2006-02-23 03:17:52 +0000
committerKaroly Lorentey <lorentey@elte.hu>2006-02-23 03:17:52 +0000
commit5a5654159aeca7b60bfceb8d68f4add0570efc7a (patch)
treeeb9da5ea0ca4c025dc76a66eb1ede78a1cc88bc7 /src/indent.c
parent5f3c1a63f31f77f60b8a60518ce3eda6a51f72b9 (diff)
parente75116edb6280346c671aa5a5c022776b0ca1c01 (diff)
downloademacs-5a5654159aeca7b60bfceb8d68f4add0570efc7a.tar.gz
Merged from emacs@sv.gnu.org
Patches applied: * emacs@sv.gnu.org/emacs--devo--0--patch-111 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-112 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-113 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-114 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-115 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-518
Diffstat (limited to 'src/indent.c')
-rw-r--r--src/indent.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/indent.c b/src/indent.c
index 9b5a9e32c79..efc375e27f7 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -2109,7 +2109,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));
}