Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
16032db6
Commit
16032db6
authored
Mar 01, 1993
by
Richard M. Stallman
Browse files
(del_range): Update point before offset_intervals.
parent
75cf385a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/insdel.c
src/insdel.c
+3
-3
No files found.
src/insdel.c
View file @
16032db6
...
...
@@ -444,9 +444,6 @@ del_range (from, to)
record_delete
(
from
,
numdel
);
MODIFF
++
;
/* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */
offset_intervals
(
current_buffer
,
point
,
-
numdel
);
/* Relocate point as if it were a marker. */
if
(
from
<
point
)
{
...
...
@@ -456,6 +453,9 @@ del_range (from, to)
SET_PT
(
point
-
numdel
);
}
/* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */
offset_intervals
(
current_buffer
,
point
,
-
numdel
);
/* Relocate all markers pointing into the new, larger gap
to point at the end of the text before the gap. */
adjust_markers
(
to
+
GAP_SIZE
,
to
+
GAP_SIZE
,
-
numdel
-
GAP_SIZE
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment