changeset 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 a64070429637
children 1d5e341f2030
files src/insdel.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/insdel.c	Fri Oct 26 11:59:32 2001 +0000
+++ b/src/insdel.c	Fri Oct 26 12:02:21 2001 +0000
@@ -913,6 +913,9 @@
      register int nchars, nbytes;
      int inherit, prepare, before_markers;
 {
+  if (nchars == 0)
+    return;
+  
   if (NILP (current_buffer->enable_multibyte_characters))
     nchars = nbytes;