From: Kenichi Handa Date: Fri, 13 Dec 2002 02:35:51 +0000 (+0000) Subject: (Funencodable_char_position): Set pend correctly. X-Git-Tag: ttn-vms-21-2-B4~12024 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=200c93e2af65f4fa433416b91d4a8d34209d80f3;p=emacs.git (Funencodable_char_position): Set pend correctly. --- diff --git a/src/coding.c b/src/coding.c index fcb1d630cdb..577a1b44691 100644 --- a/src/coding.c +++ b/src/coding.c @@ -6569,7 +6569,10 @@ to the string. */) if (NILP (current_buffer->enable_multibyte_characters)) return Qnil; p = CHAR_POS_ADDR (from); - pend = CHAR_POS_ADDR (to); + if (to == GPT) + pend = GPT_ADDR; + else + pend = CHAR_POS_ADDR (to); } else {