(Funencodable_char_position): Set pend correctly.

This commit is contained in:
Kenichi Handa 2002-12-13 02:35:51 +00:00
parent b8c6225c28
commit 200c93e2af

View file

@ -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
{