summaryrefslogtreecommitdiff
path: root/src/insdel.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>1999-08-04 11:26:17 +0000
committerAndreas Schwab <schwab@suse.de>1999-08-04 11:26:17 +0000
commit534b98409f1fcc5e33dfe1cf40a3ebc1715a8712 (patch)
tree079d16dc120649f0164d419e88b7d527435e6798 /src/insdel.c
parent2e4a0140b9d4b7d2677a518b41d3245170a58708 (diff)
downloademacs-534b98409f1fcc5e33dfe1cf40a3ebc1715a8712.tar.gz
(insert_from_string_1): Check gap size against number
of outgoing bytes, not incoming bytes.
Diffstat (limited to 'src/insdel.c')
-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;