From: Andreas Schwab Date: Wed, 4 Aug 1999 11:26:17 +0000 (+0000) Subject: (insert_from_string_1): Check gap size against number X-Git-Tag: emacs-pretest-21.0.90~7271 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=534b98409f1fcc5e33dfe1cf40a3ebc1715a8712;p=emacs.git (insert_from_string_1): Check gap size against number of outgoing bytes, not incoming bytes. --- 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;