diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/insdel.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/insdel.c b/src/insdel.c index 969f70dba6e..833d0065a1b 100644 --- a/src/insdel.c +++ b/src/insdel.c | |||
| @@ -271,11 +271,16 @@ make_gap (increment) | |||
| 271 | 271 | ||
| 272 | BLOCK_INPUT; | 272 | BLOCK_INPUT; |
| 273 | result = BUFFER_REALLOC (BEG_ADDR, (Z - BEG + GAP_SIZE + increment)); | 273 | result = BUFFER_REALLOC (BEG_ADDR, (Z - BEG + GAP_SIZE + increment)); |
| 274 | UNBLOCK_INPUT; | ||
| 275 | 274 | ||
| 276 | if (result == 0) | 275 | if (result == 0) |
| 277 | memory_full (); | 276 | { |
| 277 | UNBLOCK_INPUT; | ||
| 278 | memory_full (); | ||
| 279 | } | ||
| 280 | |||
| 281 | /* We can't unblock until the new address is properly stored. */ | ||
| 278 | BEG_ADDR = result; | 282 | BEG_ADDR = result; |
| 283 | UNBLOCK_INPUT; | ||
| 279 | 284 | ||
| 280 | /* Prevent quitting in move_gap. */ | 285 | /* Prevent quitting in move_gap. */ |
| 281 | tem = Vinhibit_quit; | 286 | tem = Vinhibit_quit; |