From 200c93e2af65f4fa433416b91d4a8d34209d80f3 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Fri, 13 Dec 2002 02:35:51 +0000 Subject: [PATCH] (Funencodable_char_position): Set pend correctly. --- src/coding.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 { -- 2.39.5