From: Gerd Moellmann Date: Fri, 26 Oct 2001 12:02:42 +0000 (+0000) Subject: (insert_1_both): Do nothing if NCHARS == 0. X-Git-Tag: ttn-vms-21-2-B4~19143 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=da80a8d55e09550c6e6dd980de8cc75baf20f3eb;p=emacs.git (insert_1_both): Do nothing if NCHARS == 0. --- diff --git a/src/ChangeLog b/src/ChangeLog index dc42d2d7717..815fc6b62f1 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 7963ae0f328..24bfe8a893c 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -913,6 +913,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;