fix: Properly determine SyntaxEditor replacement intersection

Bordering replacements should not be considered intersecting
This commit is contained in:
Giga Bowser 2024-11-16 20:01:05 -05:00
parent 1b8360be51
commit ff1124918e

View file

@ -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!(