summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/insdel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/insdel.c b/src/insdel.c
index d331c37d96c..efb3303a070 100644
--- a/src/insdel.c
+++ b/src/insdel.c
@@ -1251,7 +1251,7 @@ insert_from_string_1 (string, pos, pos_byte, nchars, nbytes,
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;