emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/indent.c


From: Kim F. Storm
Subject: [Emacs-diffs] Changes to emacs/src/indent.c
Date: Wed, 22 Feb 2006 20:29:42 +0000

Index: emacs/src/indent.c
diff -u emacs/src/indent.c:1.182 emacs/src/indent.c:1.183
--- emacs/src/indent.c:1.182    Mon Feb  6 15:23:21 2006
+++ emacs/src/indent.c  Wed Feb 22 20:29:41 2006
@@ -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));
     }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]