HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fd7410
)
(make_gap): Keep input blocked till after we set BEG_ADDR.
author
Richard M. Stallman
<rms@gnu.org>
Fri, 7 Oct 1994 17:40:50 +0000
(17:40 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Fri, 7 Oct 1994 17:40:50 +0000
(17:40 +0000)
src/insdel.c
patch
|
blob
|
blame
|
history
diff --git
a/src/insdel.c
b/src/insdel.c
index
969f70d
..
833d006
100644
(file)
--- a/
src/insdel.c
+++ b/
src/insdel.c
@@
-271,11
+271,16
@@
make_gap (increment)
BLOCK_INPUT;
result = BUFFER_REALLOC (BEG_ADDR, (Z - BEG + GAP_SIZE + increment));
- UNBLOCK_INPUT;
if (result == 0)
- memory_full ();
+ {
+ UNBLOCK_INPUT;
+ memory_full ();
+ }
+
+ /* We can't unblock until the new address is properly stored. */
BEG_ADDR = result;
+ UNBLOCK_INPUT;
/* Prevent quitting in move_gap. */
tem = Vinhibit_quit;