summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2002-12-13 02:35:51 +0000
committerKenichi Handa <handa@m17n.org>2002-12-13 02:35:51 +0000
commit200c93e2af65f4fa433416b91d4a8d34209d80f3 (patch)
treeeab974910c6d4a14a1ffa306fc7de85b4390aef3
parentb8c6225c281e8fff8a7f2132462beb6b1ac4253b (diff)
downloademacs-200c93e2af65f4fa433416b91d4a8d34209d80f3.tar.gz
(Funencodable_char_position): Set pend correctly.
-rw-r--r--src/coding.c5
1 files changed, 4 insertions, 1 deletions
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
{