comparison src/indent.c @ 90317:34c8b755296d

Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-23 Merge from emacs--devo--0 Patches applied: * emacs--devo--0 (patch 113-118) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 38-39) - Update from CVS
author Miles Bader <miles@gnu.org>
date Fri, 24 Feb 2006 08:08:56 +0000
parents c5406394f567 98dc9c749829
children c358d0861b16
comparison
equal deleted inserted replaced
90316:458ed0c8c4c3 90317:34c8b755296d
2105 move_it_by_lines (&it, -1, 0); 2105 move_it_by_lines (&it, -1, 0);
2106 2106
2107 it.vpos = 0; 2107 it.vpos = 0;
2108 /* Do this even if LINES is 0, so that we move back 2108 /* Do this even if LINES is 0, so that we move back
2109 to the beginning of the current line as we ought. */ 2109 to the beginning of the current line as we ought. */
2110 move_it_by_lines (&it, XINT (lines), 0); 2110 if (XINT (lines) >= 0 || IT_CHARPOS (it) > 0)
2111 move_it_by_lines (&it, XINT (lines), 0);
2111 2112
2112 SET_PT_BOTH (IT_CHARPOS (it), IT_BYTEPOS (it)); 2113 SET_PT_BOTH (IT_CHARPOS (it), IT_BYTEPOS (it));
2113 } 2114 }
2114 2115
2115 if (BUFFERP (old_buffer)) 2116 if (BUFFERP (old_buffer))