mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-08 15:35:02 +00:00
(insert_from_string_1): Check gap size against number
of outgoing bytes, not incoming bytes.
This commit is contained in:
parent
2e4a0140b9
commit
534b98409f
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user