diff options
| author | Andreas Schwab | 1999-08-04 11:26:17 +0000 |
|---|---|---|
| committer | Andreas Schwab | 1999-08-04 11:26:17 +0000 |
| commit | 534b98409f1fcc5e33dfe1cf40a3ebc1715a8712 (patch) | |
| tree | 079d16dc120649f0164d419e88b7d527435e6798 /src | |
| parent | 2e4a0140b9d4b7d2677a518b41d3245170a58708 (diff) | |
| download | emacs-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.c | 2 |
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 | ||