changeset 15123:d6106d651a71

(signal_after_change): Correct the arg to report_overlay_modification.
author Richard M. Stallman <rms@gnu.org>
date Wed, 01 May 1996 21:25:49 +0000
parents a46a40f1c30c
children b2c682fcd3ef
files src/insdel.c
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/insdel.c	Wed May 01 21:20:05 1996 +0000
+++ b/src/insdel.c	Wed May 01 21:25:49 1996 +0000
@@ -836,9 +836,8 @@
    POS is the address of the start of the changed text.
    LENDEL is the number of characters of the text before the change.
    (Not the whole buffer; just the part that was changed.)
-   LENINS is the number of characters in the changed text.
-
-   (Hence POS + LENINS - LENDEL is the position after the changed text.)  */
+   LENINS is the number of characters in that part of the text
+   after the change.  */
 
 void
 signal_after_change (pos, lendel, lenins)
@@ -885,7 +884,7 @@
   if (!NILP (current_buffer->overlays_before)
       || !NILP (current_buffer->overlays_after))
     report_overlay_modification (make_number (pos),
-				 make_number (pos + lenins - lendel),
+				 make_number (pos + lenins),
 				 1,
 				 make_number (pos), make_number (pos + lenins),
 				 make_number (lendel));