comparison src/coding.c @ 23258:2f8585bcea90

(code_convert_region): Update beg_unchanged and end_unchanged after we delete the source text.
author Kenichi Handa <handa@m17n.org>
date Wed, 16 Sep 1998 07:21:31 +0000
parents 392b44751a22
children ca159e828a68
comparison
equal deleted inserted replaced
23257:b72cefab3254 23258:2f8585bcea90
4210 4210
4211 if (GAP_SIZE < require) 4211 if (GAP_SIZE < require)
4212 make_gap (require - GAP_SIZE); 4212 make_gap (require - GAP_SIZE);
4213 move_gap_both (from, from_byte); 4213 move_gap_both (from, from_byte);
4214 4214
4215 if (GPT - BEG < beg_unchanged)
4216 beg_unchanged = GPT - BEG;
4217 if (Z - GPT < end_unchanged)
4218 end_unchanged = Z - GPT;
4219
4220 inserted = inserted_byte = 0; 4215 inserted = inserted_byte = 0;
4221 src = GAP_END_ADDR, dst = GPT_ADDR; 4216 src = GAP_END_ADDR, dst = GPT_ADDR;
4222 4217
4223 GAP_SIZE += len_byte; 4218 GAP_SIZE += len_byte;
4224 ZV -= len; 4219 ZV -= len;
4225 Z -= len; 4220 Z -= len;
4226 ZV_BYTE -= len_byte; 4221 ZV_BYTE -= len_byte;
4227 Z_BYTE -= len_byte; 4222 Z_BYTE -= len_byte;
4223
4224 if (GPT - BEG < beg_unchanged)
4225 beg_unchanged = GPT - BEG;
4226 if (Z - GPT < end_unchanged)
4227 end_unchanged = Z - GPT;
4228 4228
4229 for (;;) 4229 for (;;)
4230 { 4230 {
4231 int result; 4231 int result;
4232 4232