Mercurial > emacs
changeset 22926:436499b7a769
(internal_self_insert): If enable-multibyte-characters is
nil, convert a multibyte character to unibyte appropriately.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Fri, 07 Aug 1998 05:04:36 +0000 |
parents | e89aad442cf7 |
children | 209acf11198c |
files | src/cmds.c |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/cmds.c Fri Aug 07 04:36:17 1998 +0000 +++ b/src/cmds.c Fri Aug 07 05:04:36 1998 +0000 @@ -356,8 +356,13 @@ 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) {