# HG changeset patch # User Gerd Moellmann # Date 968944409 0 # Node ID 04e50cacc23fdda5b6d29b91a0121114668a11b9 # Parent a42e23d2b9cc065092264dfec7feec7da4f3a8c1 (make_gap): Use enlarge_buffer_text. diff -r a42e23d2b9cc -r 04e50cacc23f src/insdel.c --- a/src/insdel.c Thu Sep 14 15:13:18 2000 +0000 +++ b/src/insdel.c Thu Sep 14 15:13:29 2000 +0000 @@ -520,20 +520,7 @@ >= ((unsigned) 1 << (min (BITS_PER_INT, VALBITS) - 1))) error ("Buffer exceeds maximum size"); - BLOCK_INPUT; - /* We allocate extra 1-byte `\0' at the tail for anchoring a search. */ - result = BUFFER_REALLOC (BEG_ADDR, (Z_BYTE - BEG_BYTE - + GAP_SIZE + nbytes_added + 1)); - - if (result == 0) - { - UNBLOCK_INPUT; - memory_full (); - } - - /* We can't unblock until the new address is properly stored. */ - BEG_ADDR = result; - UNBLOCK_INPUT; + enlarge_buffer_text (current_buffer, nbytes_added); /* Prevent quitting in move_gap. */ tem = Vinhibit_quit;