Mercurial > emacs
changeset 21274:4bd1566d9e1e
(del_range_2): Move gap again to a proper place just
after calling make_buffer_string_both.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Tue, 24 Mar 1998 05:41:38 +0000 |
parents | 3d9e12cf2e63 |
children | 66f5ac2310fd |
files | src/insdel.c |
diffstat | 1 files changed, 4 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/insdel.c Tue Mar 24 05:41:38 1998 +0000 +++ b/src/insdel.c Tue Mar 24 05:41:38 1998 +0000 @@ -1843,6 +1843,10 @@ from_byte_1, to + combined_after_bytes, to_byte + combined_after_bytes, 1); + if (combined_after_bytes) + /* COMBINED_AFTER_BYTES nonzero means that the above code moved + the gap. We must move the gap again to a proper place. */ + move_gap_both (from, from_byte); /* Relocate all markers pointing into the new, larger gap to point at the end of the text before the gap. @@ -1866,12 +1870,6 @@ from, from_byte); } record_delete (from - !!combined_after_bytes, deletion); - - if (combined_after_bytes) - /* COMBINED_AFTER_BYTES nonzero means that the above record_delete - moved the gap by calling Fbuffer_substring. We must move the - gap again to a proper place. */ - move_gap_both (from, from_byte); MODIFF++; /* Relocate point as if it were a marker. */