From: Gerd Moellmann Date: Fri, 26 Oct 2001 12:03:32 +0000 (+0000) Subject: (insert_1_both): Do nothing if NCHARS == 0. X-Git-Tag: emacs-21.2~448 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bcd9ac5f8738940ca2752c90a128348e87b58328;p=emacs.git (insert_1_both): Do nothing if NCHARS == 0. --- diff --git a/src/ChangeLog b/src/ChangeLog index 8628e831f83..40325fd6e65 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2001-10-26 Gerd Moellmann + * 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. diff --git a/src/insdel.c b/src/insdel.c index 134e8760ef0..3383f4e56e2 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -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;