aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schwab1999-08-04 11:26:17 +0000
committerAndreas Schwab1999-08-04 11:26:17 +0000
commit534b98409f1fcc5e33dfe1cf40a3ebc1715a8712 (patch)
tree079d16dc120649f0164d419e88b7d527435e6798 /src
parent2e4a0140b9d4b7d2677a518b41d3245170a58708 (diff)
downloademacs-534b98409f1fcc5e33dfe1cf40a3ebc1715a8712.tar.gz
emacs-534b98409f1fcc5e33dfe1cf40a3ebc1715a8712.zip
(insert_from_string_1): Check gap size against number
of outgoing bytes, not incoming bytes.
Diffstat (limited to 'src')
-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,
1251 1251
1252 if (PT != GPT) 1252 if (PT != GPT)
1253 move_gap_both (PT, PT_BYTE); 1253 move_gap_both (PT, PT_BYTE);
1254 if (GAP_SIZE < nbytes) 1254 if (GAP_SIZE < outgoing_nbytes)
1255 make_gap (outgoing_nbytes - GAP_SIZE); 1255 make_gap (outgoing_nbytes - GAP_SIZE);
1256 UNGCPRO; 1256 UNGCPRO;
1257 1257