changeset 48829:f6c59ca557c7

(Funencodable_char_position): Set pend correctly.
author Kenichi Handa <handa@m17n.org>
date Fri, 13 Dec 2002 02:35:51 +0000
parents d74c4e3f225e
children 47d70e67763f
files src/coding.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Fri Dec 13 02:35:34 2002 +0000
+++ b/src/coding.c	Fri Dec 13 02:35:51 2002 +0000
@@ -6569,7 +6569,10 @@
       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
     {