summaryrefslogtreecommitdiff
path: root/src/insdel.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-05-01 21:25:49 +0000
committerRichard M. Stallman <rms@gnu.org>1996-05-01 21:25:49 +0000
commit8b09e5d05c3ffa597702346cc4d181ef9a3077cf (patch)
tree14520728d6bedbe34b6fba456c2d1e11955f0210 /src/insdel.c
parent0b1f1b099f3ea8bc196cdfe91d3369e43dadd5bb (diff)
downloademacs-8b09e5d05c3ffa597702346cc4d181ef9a3077cf.tar.gz
(signal_after_change): Correct the arg to report_overlay_modification.
Diffstat (limited to 'src/insdel.c')
-rw-r--r--src/insdel.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/insdel.c b/src/insdel.c
index 1058de734de..9f505361cc0 100644
--- a/src/insdel.c
+++ b/src/insdel.c
@@ -836,9 +836,8 @@ signal_before_change (start, end)
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 @@ signal_after_change (pos, lendel, lenins)
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));