diff options
author | Kenichi Handa <handa@m17n.org> | 1998-03-03 01:29:16 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 1998-03-03 01:29:16 +0000 |
commit | b98590074d53c9b510e344bc81d5ae47ceb8abfa (patch) | |
tree | 0e99aee2c87e768f674dcb352bf9a95e28f85cbd /src/cmds.c | |
parent | 3b2d77fe297f6e177b95573601fe723117dbd78a (diff) | |
download | emacs-b98590074d53c9b510e344bc81d5ae47ceb8abfa.tar.gz |
(internal_self_insert): Avoid checking enable-multibyte-characters
twice.
Diffstat (limited to 'src/cmds.c')
-rw-r--r-- | src/cmds.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmds.c b/src/cmds.c index ba7745ac814..cd814e6f706 100644 --- a/src/cmds.c +++ b/src/cmds.c @@ -342,9 +342,6 @@ internal_self_insert (c, noautofill) int chars_to_delete = 0; int spaces_to_insert = 0; - if (! NILP (current_buffer->enable_multibyte_characters)) - c = unibyte_char_to_multibyte (c); - overwrite = current_buffer->overwrite_mode; if (!NILP (Vbefore_change_function) || !NILP (Vafter_change_function) || !NILP (Vbefore_change_functions) || !NILP (Vafter_change_functions)) @@ -352,7 +349,10 @@ internal_self_insert (c, noautofill) /* At first, get multi-byte form of C in STR. */ if (!NILP (current_buffer->enable_multibyte_characters)) - len = CHAR_STRING (c, workbuf, str); + { + c = unibyte_char_to_multibyte (c); + len = CHAR_STRING (c, workbuf, str); + } else workbuf[0] = c, str = workbuf, len = 1; |