1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-18 10:16:51 +00:00

(code_convert_region): Update beg_unchanged and

end_unchanged after we delete the source text.
This commit is contained in:
Kenichi Handa 1998-09-16 07:21:31 +00:00
parent 457262616e
commit f2558efddd

View File

@ -4212,11 +4212,6 @@ code_convert_region (from, from_byte, to, to_byte, coding, encodep, replace)
make_gap (require - GAP_SIZE);
move_gap_both (from, from_byte);
if (GPT - BEG < beg_unchanged)
beg_unchanged = GPT - BEG;
if (Z - GPT < end_unchanged)
end_unchanged = Z - GPT;
inserted = inserted_byte = 0;
src = GAP_END_ADDR, dst = GPT_ADDR;
@ -4226,6 +4221,11 @@ code_convert_region (from, from_byte, to, to_byte, coding, encodep, replace)
ZV_BYTE -= len_byte;
Z_BYTE -= len_byte;
if (GPT - BEG < beg_unchanged)
beg_unchanged = GPT - BEG;
if (Z - GPT < end_unchanged)
end_unchanged = Z - GPT;
for (;;)
{
int result;