diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2008-04-03 20:01:31 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2008-04-03 20:01:31 +0000 |
commit | f1a6b2163ced8440664a1e0045f7124298386d01 (patch) | |
tree | 1869234c370a53e0388436f3325bf41627ed9b92 /src/insdel.c | |
parent | ac1491a77fca2b30cbccc3e86e12e0534455df17 (diff) | |
download | emacs-f1a6b2163ced8440664a1e0045f7124298386d01.tar.gz |
(insert_from_buffer_1): Don't compare bytes in destination
buffer with byte-size of source buffer.
Diffstat (limited to 'src/insdel.c')
-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 2919c183ab7..884620d3899 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -1352,7 +1352,7 @@ insert_from_buffer_1 (buf, from, nchars, inherit) /* 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; |