comparison src/casefiddle.c @ 59856:4832f1833501

(casify_region): Fix previous change.
author Kenichi Handa <handa@m17n.org>
date Wed, 02 Feb 2005 00:57:33 +0000
parents 75a481e7d8f1
children a8fa7c632ee4 72cf6261961e
comparison
equal deleted inserted replaced
59855:e1f57074406e 59856:4832f1833501
253 keeping text properties the same. */ 253 keeping text properties the same. */
254 replace_range_2 (start, i, 254 replace_range_2 (start, i,
255 start + 1, i + fromlen, 255 start + 1, i + fromlen,
256 str, 1, tolen, 256 str, 1, tolen,
257 1); 257 1);
258 opoint_byte += tolen - fromlen; 258 if (opoint > start)
259 opoint_byte += tolen - fromlen;
259 } 260 }
260 } 261 }
261 if ((int) flag >= (int) CASE_CAPITALIZE) 262 if ((int) flag >= (int) CASE_CAPITALIZE)
262 inword = SYNTAX (c2) == Sword; 263 inword = SYNTAX (c2) == Sword;
263 INC_BOTH (start, i); 264 INC_BOTH (start, i);