Commit 38b62842 authored by Kenichi Handa's avatar Kenichi Handa

(internal_self_insert): If enable-multibyte-characters is

nil, convert a multibyte character to unibyte appropriately.
parent e271fdb3
......@@ -356,8 +356,13 @@ internal_self_insert (c, noautofill)
len = CHAR_STRING (c, workbuf, str);
}
else
workbuf[0] = c, str = workbuf, len = 1;
{
workbuf[0] = (SINGLE_BYTE_CHAR_P (c)
? c
: multibyte_char_to_unibyte (c, Qnil));
str = workbuf;
len = 1;
}
if (!NILP (overwrite)
&& PT < ZV)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment