]> git.eshelyaron.com Git - emacs.git/commitdiff
(insert_from_string_1): Check gap size against number
authorAndreas Schwab <schwab@suse.de>
Wed, 4 Aug 1999 11:26:17 +0000 (11:26 +0000)
committerAndreas Schwab <schwab@suse.de>
Wed, 4 Aug 1999 11:26:17 +0000 (11:26 +0000)
of outgoing bytes, not incoming bytes.

src/insdel.c

index d331c37d96c4a1a2b3c66a24e81702013756cac8..efb3303a0708512726f19cb468752d16a7e9bb47 100644 (file)
@@ -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;