fix: Properly determine SyntaxEditor
replacement intersection
Bordering replacements should not be considered intersecting
This commit is contained in:
parent
9549e473a0
commit
fbd671373b
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ pub(super) fn apply_edits(editor: SyntaxEditor) -> SyntaxEdit {
|
|||
})
|
||||
.all(|(l, r)| {
|
||||
get_node_depth(l.target_parent()) != get_node_depth(r.target_parent())
|
||||
|| l.target_range().intersect(r.target_range()).is_none()
|
||||
|| (l.target_range().end() <= r.target_range().start())
|
||||
});
|
||||
|
||||
if stdx::never!(
|
||||
|
|
Loading…
Add table
Reference in a new issue