aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/insdel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/insdel.c b/src/insdel.c
index 1deda9d7ac8..489f80f1ea3 100644
--- a/src/insdel.c
+++ b/src/insdel.c
@@ -425,6 +425,9 @@ del_range (from, to)
425 425
426 prepare_to_modify_buffer (from, to); 426 prepare_to_modify_buffer (from, to);
427 427
428 record_delete (from, numdel);
429 MODIFF++;
430
428 /* Relocate point as if it were a marker. */ 431 /* Relocate point as if it were a marker. */
429 if (from < point) 432 if (from < point)
430 { 433 {
@@ -434,9 +437,6 @@ del_range (from, to)
434 SET_PT (point - numdel); 437 SET_PT (point - numdel);
435 } 438 }
436 439
437 record_delete (from, numdel);
438 MODIFF++;
439
440 /* Relocate all markers pointing into the new, larger gap 440 /* Relocate all markers pointing into the new, larger gap
441 to point at the end of the text before the gap. */ 441 to point at the end of the text before the gap. */
442 adjust_markers (to + GAP_SIZE, to + GAP_SIZE, - numdel - GAP_SIZE); 442 adjust_markers (to + GAP_SIZE, to + GAP_SIZE, - numdel - GAP_SIZE);