]> git.eshelyaron.com Git - emacs.git/commitdiff
(insert_1_both): If enable-multibyte-characters is nil,
authorKenichi Handa <handa@m17n.org>
Tue, 3 Mar 1998 07:18:46 +0000 (07:18 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 3 Mar 1998 07:18:46 +0000 (07:18 +0000)
insert each byte as one character.

src/insdel.c

index 54d1cf1606e469e1a74a2e64c584c474d48a51f9..536e9e7767b5ad2084888c2b515dcd955657fe0b 100644 (file)
@@ -800,6 +800,9 @@ insert_1_both (string, nchars, nbytes, inherit, prepare, before_markers)
 {
   register Lisp_Object temp;
 
+  if (NILP (current_buffer->enable_multibyte_characters))
+    nchars = nbytes;
+
   if (prepare)
     prepare_to_modify_buffer (PT, PT, NULL);