comparison src/insdel.c @ 40331:97afe8612d00

(insert_1_both): Do nothing if NCHARS == 0.
author Gerd Moellmann <gerd@gnu.org>
date Fri, 26 Oct 2001 12:02:21 +0000
parents 5f60884970a8
children 5ed9e7521ec5
comparison
equal deleted inserted replaced
40330:a64070429637 40331:97afe8612d00
911 insert_1_both (string, nchars, nbytes, inherit, prepare, before_markers) 911 insert_1_both (string, nchars, nbytes, inherit, prepare, before_markers)
912 register unsigned char *string; 912 register unsigned char *string;
913 register int nchars, nbytes; 913 register int nchars, nbytes;
914 int inherit, prepare, before_markers; 914 int inherit, prepare, before_markers;
915 { 915 {
916 if (nchars == 0)
917 return;
918
916 if (NILP (current_buffer->enable_multibyte_characters)) 919 if (NILP (current_buffer->enable_multibyte_characters))
917 nchars = nbytes; 920 nchars = nbytes;
918 921
919 if (prepare) 922 if (prepare)
920 /* Do this before moving and increasing the gap, 923 /* Do this before moving and increasing the gap,