aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cmds.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/cmds.c b/src/cmds.c
index f91f91b0bc1..f705f147727 100644
--- a/src/cmds.c
+++ b/src/cmds.c
@@ -356,8 +356,13 @@ internal_self_insert (c, noautofill)
356 len = CHAR_STRING (c, workbuf, str); 356 len = CHAR_STRING (c, workbuf, str);
357 } 357 }
358 else 358 else
359 workbuf[0] = c, str = workbuf, len = 1; 359 {
360 360 workbuf[0] = (SINGLE_BYTE_CHAR_P (c)
361 ? c
362 : multibyte_char_to_unibyte (c, Qnil));
363 str = workbuf;
364 len = 1;
365 }
361 if (!NILP (overwrite) 366 if (!NILP (overwrite)
362 && PT < ZV) 367 && PT < ZV)
363 { 368 {