]> git.eshelyaron.com Git - emacs.git/commitdiff
(insert_from_string_1): Decrement GAP_SIZE by
authorKenichi Handa <handa@m17n.org>
Mon, 12 Jan 1998 05:49:45 +0000 (05:49 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 12 Jan 1998 05:49:45 +0000 (05:49 +0000)
outgoing_nbytes.

src/insdel.c

index a3afd75b5c58a1dcc54d5ac819de7753c65d21b9..a53c937ab6fc91aed0e1833a51e93ccf0b9371c4 100644 (file)
@@ -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;