From da80a8d55e09550c6e6dd980de8cc75baf20f3eb Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Fri, 26 Oct 2001 12:02:42 +0000 Subject: [PATCH] (insert_1_both): Do nothing if NCHARS == 0. --- src/ChangeLog | 2 ++ src/insdel.c | 3 +++ 2 files changed, 5 insertions(+) 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; -- 2.39.2