# HG changeset patch # User Andreas Schwab # Date 933765977 0 # Node ID dbc159883883ff97c1b698380f732c837493a834 # Parent 827d4eface8f931bb1beb766c8eead4d966334b8 (insert_from_string_1): Check gap size against number of outgoing bytes, not incoming bytes. diff -r 827d4eface8f -r dbc159883883 src/insdel.c --- 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;