From: Kenichi Handa Date: Mon, 12 Jan 1998 05:49:45 +0000 (+0000) Subject: (insert_from_string_1): Decrement GAP_SIZE by X-Git-Tag: emacs-20.3~2432 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7792090e89e1732e040ab4d79c48e8b19e5569a6;p=emacs.git (insert_from_string_1): Decrement GAP_SIZE by outgoing_nbytes. --- diff --git a/src/insdel.c b/src/insdel.c index a3afd75b5c5..a53c937ab6f 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -944,7 +944,7 @@ insert_from_string_1 (string, pos, pos_byte, nchars, nbytes, /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */ offset_intervals (current_buffer, PT, nchars); - GAP_SIZE -= nbytes; + GAP_SIZE -= outgoing_nbytes; GPT += nchars; ZV += nchars; Z += nchars;