diff options
| author | Kenichi Handa | 1998-03-24 05:41:38 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1998-03-24 05:41:38 +0000 |
| commit | 242beafec76305ee0d35d3a89fb9a30a2de1a7d8 (patch) | |
| tree | 6bc9d6aba3640f5eea6c62ba44691e7522c85f0d /src | |
| parent | de9d083c5d26657da21e22e5b3c2a3396e8aaf10 (diff) | |
| download | emacs-242beafec76305ee0d35d3a89fb9a30a2de1a7d8.tar.gz emacs-242beafec76305ee0d35d3a89fb9a30a2de1a7d8.zip | |
(del_range_2): Move gap again to a proper place just
after calling make_buffer_string_both.
Diffstat (limited to 'src')
| -rw-r--r-- | src/insdel.c | 10 |
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. */ |