mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-23 18:47:57 +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)
|
if (PT != GPT)
|
||||||
move_gap_both (PT, PT_BYTE);
|
move_gap_both (PT, PT_BYTE);
|
||||||
if (GAP_SIZE < nbytes)
|
if (GAP_SIZE < outgoing_nbytes)
|
||||||
make_gap (outgoing_nbytes - GAP_SIZE);
|
make_gap (outgoing_nbytes - GAP_SIZE);
|
||||||
UNGCPRO;
|
UNGCPRO;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user