comparison src/editfns.c @ 20895:896aeeb4f735

(Fsubst_char_in_region): Don't increment pos twice.
author Richard M. Stallman <rms@gnu.org>
date Sat, 14 Feb 1998 07:27:29 +0000
parents 64d2baa47498
children f61425242f70
comparison
equal deleted inserted replaced
20894:962d8c41cfa2 20895:896aeeb4f735
1824 } 1824 }
1825 1825
1826 if (NILP (noundo)) 1826 if (NILP (noundo))
1827 record_change (pos, 1); 1827 record_change (pos, 1);
1828 for (i = 0; i < len; i++) *p++ = tostr[i]; 1828 for (i = 0; i < len; i++) *p++ = tostr[i];
1829 pos++;
1830 pos_byte += len;
1831 } 1829 }
1832 INC_BOTH (pos, pos_byte); 1830 INC_BOTH (pos, pos_byte);
1833 } 1831 }
1834 1832
1835 if (changed) 1833 if (changed)