summaryrefslogtreecommitdiff
path: root/src/insdel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/insdel.c')
-rw-r--r--src/insdel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/insdel.c b/src/insdel.c
index bfbf76861f2..647c4beb3a4 100644
--- a/src/insdel.c
+++ b/src/insdel.c
@@ -245,7 +245,10 @@ make_gap (increment)
/* If we have to get more space, get enough to last a while. */
increment += 2000;
+ BLOCK_INPUT;
result = BUFFER_REALLOC (BEG_ADDR, (Z - BEG + GAP_SIZE + increment));
+ UNBLOCK_INPUT;
+
if (result == 0)
memory_full ();
BEG_ADDR = result;