]> git.eshelyaron.com Git - emacs.git/commitdiff
(insert_1_both): Do nothing if NCHARS == 0.
authorGerd Moellmann <gerd@gnu.org>
Fri, 26 Oct 2001 12:03:32 +0000 (12:03 +0000)
committerGerd Moellmann <gerd@gnu.org>
Fri, 26 Oct 2001 12:03:32 +0000 (12:03 +0000)
src/ChangeLog
src/insdel.c

index 8628e831f833a9c1efb6da64a19c5dcdccdb4b87..40325fd6e652ad870c6a93f38d2f12cf964ec8e6 100644 (file)
@@ -1,5 +1,7 @@
 2001-10-26  Gerd Moellmann  <gerd@gnu.org>
 
+       * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
+
        * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
        Fix clearing in the case of scroll bars on the right.
        
index 134e8760ef06f0f6ae7bf3184cfcd14c113bcefa..3383f4e56e285f6fb72c95946e30a28b5ced1a3e 100644 (file)
@@ -916,6 +916,9 @@ insert_1_both (string, nchars, nbytes, inherit, prepare, before_markers)
      register int nchars, nbytes;
      int inherit, prepare, before_markers;
 {
+  if (nchars == 0)
+    return;
+  
   if (NILP (current_buffer->enable_multibyte_characters))
     nchars = nbytes;