From d9f9a1bc83ddf049666dbdc6ccfdafc340902577 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Mon, 23 Aug 1999 00:11:40 +0000 Subject: [PATCH] (code_convert_region): Compute beg/end_unchanged per buffer. --- src/coding.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/coding.c b/src/coding.c index 6010b402529..ee15e64603c 100644 --- a/src/coding.c +++ b/src/coding.c @@ -4432,10 +4432,10 @@ 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; + if (GPT - BEG < BEG_UNCHANGED) + BEG_UNCHANGED = GPT - BEG; + if (Z - GPT < END_UNCHANGED) + END_UNCHANGED = Z - GPT; for (;;) { -- 2.39.5