void
insert_from_gap (nchars, nbytes)
- register int nchars, nbytes;
+ register EMACS_INT nchars, nbytes;
{
if (NILP (current_buffer->enable_multibyte_characters))
nchars = nbytes;
/* 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;