From 534b98409f1fcc5e33dfe1cf40a3ebc1715a8712 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Wed, 4 Aug 1999 11:26:17 +0000 Subject: [PATCH] (insert_from_string_1): Check gap size against number of outgoing bytes, not incoming bytes. --- src/insdel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/insdel.c b/src/insdel.c index d331c37d96c..efb3303a070 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -1251,7 +1251,7 @@ insert_from_string_1 (string, pos, pos_byte, nchars, nbytes, if (PT != GPT) move_gap_both (PT, PT_BYTE); - if (GAP_SIZE < nbytes) + if (GAP_SIZE < outgoing_nbytes) make_gap (outgoing_nbytes - GAP_SIZE); UNGCPRO; -- 2.39.5