]> git.eshelyaron.com Git - emacs.git/commitdiff
(internal_self_insert): Call Fforward_buffer to advance
authorRichard M. Stallman <rms@gnu.org>
Fri, 13 Mar 1998 21:22:05 +0000 (21:22 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 13 Mar 1998 21:22:05 +0000 (21:22 +0000)
over the replacement characters.

src/cmds.c

index cd814e6f706b8119be35b53c81fd5abace7da8ee..ed6dca68f4a72f19573354c2a9e933ea55c7705a 100644 (file)
@@ -456,8 +456,7 @@ internal_self_insert (c, noautofill)
        }
 
       replace_range (PT, PT + chars_to_delete, string, 1, 1);
-      SET_PT_BOTH (PT + 1 + spaces_to_insert,
-                  PT_BYTE + XSTRING (string)->size);
+      Fforward_char (make_number (1 + spaces_to_insert));
     }
   else
     insert_and_inherit (str, len);