diff options
author | Kenichi Handa <handa@m17n.org> | 1999-12-15 00:05:19 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 1999-12-15 00:05:19 +0000 |
commit | e55d9cfd36f5cb983159968cd059626f82616a05 (patch) | |
tree | 1151a20cc73049f2b1de200dd2e41eb714515d61 /src/cmds.c | |
parent | 99529c2c73b5de1b887f6c0d95fab016821dff52 (diff) | |
download | emacs-e55d9cfd36f5cb983159968cd059626f82616a05.tar.gz |
(internal_self_insert): Adjusted for the change of
CHAR_STRING.
Diffstat (limited to 'src/cmds.c')
-rw-r--r-- | src/cmds.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/cmds.c b/src/cmds.c index 721575709ce..27d6812d05f 100644 --- a/src/cmds.c +++ b/src/cmds.c @@ -344,7 +344,7 @@ internal_self_insert (c, noautofill) /* Length of multi-byte form of C. */ int len; /* Working buffer and pointer for multi-byte form of C. */ - unsigned char workbuf[4], *str; + unsigned char str[MAX_MULTIBYTE_LENGTH]; int chars_to_delete = 0; int spaces_to_insert = 0; @@ -357,7 +357,7 @@ internal_self_insert (c, noautofill) if (!NILP (current_buffer->enable_multibyte_characters)) { c = unibyte_char_to_multibyte (c); - len = CHAR_STRING (c, workbuf, str); + len = CHAR_STRING (c, str); if (len == 1) /* If C has modifier bits, this makes C an appropriate one-byte char. */ @@ -365,10 +365,9 @@ internal_self_insert (c, noautofill) } else { - workbuf[0] = (SINGLE_BYTE_CHAR_P (c) - ? c - : multibyte_char_to_unibyte (c, Qnil)); - str = workbuf; + str[0] = (SINGLE_BYTE_CHAR_P (c) + ? c + : multibyte_char_to_unibyte (c, Qnil)); len = 1; } if (!NILP (overwrite) |