comparison src/insdel.c @ 20642:818677afe7bc

(insert_from_string_1): Decrement GAP_SIZE by outgoing_nbytes.
author Kenichi Handa <handa@m17n.org>
date Mon, 12 Jan 1998 05:49:45 +0000
parents a6cca06d5aaf
children ed9ed828415e
comparison
equal deleted inserted replaced
20641:a48d24f8726c 20642:818677afe7bc
942 ! NILP (current_buffer->enable_multibyte_characters)); 942 ! NILP (current_buffer->enable_multibyte_characters));
943 943
944 /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */ 944 /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */
945 offset_intervals (current_buffer, PT, nchars); 945 offset_intervals (current_buffer, PT, nchars);
946 946
947 GAP_SIZE -= nbytes; 947 GAP_SIZE -= outgoing_nbytes;
948 GPT += nchars; 948 GPT += nchars;
949 ZV += nchars; 949 ZV += nchars;
950 Z += nchars; 950 Z += nchars;
951 GPT_BYTE += outgoing_nbytes; 951 GPT_BYTE += outgoing_nbytes;
952 ZV_BYTE += outgoing_nbytes; 952 ZV_BYTE += outgoing_nbytes;