aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)
836 POS is the address of the start of the changed text. 836 POS is the address of the start of the changed text.
837 LENDEL is the number of characters of the text before the change. 837 LENDEL is the number of characters of the text before the change.
838 (Not the whole buffer; just the part that was changed.) 838 (Not the whole buffer; just the part that was changed.)
839 LENINS is the number of characters in the changed text. 839 LENINS is the number of characters in that part of the text
840 840 after the change. */
841 (Hence POS + LENINS - LENDEL is the position after the changed text.) */
842 841
843void 842void
844signal_after_change (pos, lendel, lenins) 843signal_after_change (pos, lendel, lenins)
@@ -885,7 +884,7 @@ signal_after_change (pos, lendel, lenins)
885 if (!NILP (current_buffer->overlays_before) 884 if (!NILP (current_buffer->overlays_before)
886 || !NILP (current_buffer->overlays_after)) 885 || !NILP (current_buffer->overlays_after))
887 report_overlay_modification (make_number (pos), 886 report_overlay_modification (make_number (pos),
888 make_number (pos + lenins - lendel), 887 make_number (pos + lenins),
889 1, 888 1,
890 make_number (pos), make_number (pos + lenins), 889 make_number (pos), make_number (pos + lenins),
891 make_number (lendel)); 890 make_number (lendel));