aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/insdel.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/insdel.c b/src/insdel.c
index 63b284eb003..c94602c90a4 100644
--- a/src/insdel.c
+++ b/src/insdel.c
@@ -1843,6 +1843,10 @@ del_range_2 (from, from_byte, to, to_byte)
1843 from_byte_1, 1843 from_byte_1,
1844 to + combined_after_bytes, 1844 to + combined_after_bytes,
1845 to_byte + combined_after_bytes, 1); 1845 to_byte + combined_after_bytes, 1);
1846 if (combined_after_bytes)
1847 /* COMBINED_AFTER_BYTES nonzero means that the above code moved
1848 the gap. We must move the gap again to a proper place. */
1849 move_gap_both (from, from_byte);
1846 1850
1847 /* Relocate all markers pointing into the new, larger gap 1851 /* Relocate all markers pointing into the new, larger gap
1848 to point at the end of the text before the gap. 1852 to point at the end of the text before the gap.
@@ -1866,12 +1870,6 @@ del_range_2 (from, from_byte, to, to_byte)
1866 from, from_byte); 1870 from, from_byte);
1867 } 1871 }
1868 record_delete (from - !!combined_after_bytes, deletion); 1872 record_delete (from - !!combined_after_bytes, deletion);
1869
1870 if (combined_after_bytes)
1871 /* COMBINED_AFTER_BYTES nonzero means that the above record_delete
1872 moved the gap by calling Fbuffer_substring. We must move the
1873 gap again to a proper place. */
1874 move_gap_both (from, from_byte);
1875 MODIFF++; 1873 MODIFF++;
1876 1874
1877 /* Relocate point as if it were a marker. */ 1875 /* Relocate point as if it were a marker. */