changeset 25170:dbc159883883

(insert_from_string_1): Check gap size against number of outgoing bytes, not incoming bytes.
author Andreas Schwab <schwab@suse.de>
date Wed, 04 Aug 1999 11:26:17 +0000
parents 827d4eface8f
children b565998245c5
files src/insdel.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/insdel.c	Wed Aug 04 10:19:09 1999 +0000
+++ b/src/insdel.c	Wed Aug 04 11:26:17 1999 +0000
@@ -1251,7 +1251,7 @@
 
   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;