Mercurial > emacs
diff src/insdel.c @ 93610:f65c3e4b689b
(insert_from_buffer_1): Don't compare bytes in destination
buffer with byte-size of source buffer.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Thu, 03 Apr 2008 20:01:31 +0000 |
parents | 507bcfb4342c |
children | 8971ddf55736 |
line wrap: on
line diff
--- a/src/insdel.c Thu Apr 03 16:37:39 2008 +0000 +++ b/src/insdel.c Thu Apr 03 20:01:31 2008 +0000 @@ -1352,7 +1352,7 @@ /* Get the intervals for the part of the string we are inserting. */ intervals = BUF_INTERVALS (buf); - if (outgoing_nbytes < BUF_Z_BYTE (buf) - BUF_BEG_BYTE (buf)) + if (nchars < BUF_Z (buf) - BUF_BEG (buf)) { if (buf == current_buffer && PT <= from) from += nchars;