From bcd9ac5f8738940ca2752c90a128348e87b58328 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Fri, 26 Oct 2001 12:03:32 +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 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; -- 2.39.2