mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
fix: Properly determine SyntaxEditor
replacement intersection
Bordering replacements should not be considered intersecting
This commit is contained in:
parent
1b8360be51
commit
ff1124918e
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ pub(super) fn apply_edits(editor: SyntaxEditor) -> SyntaxEdit {
|
||||||
})
|
})
|
||||||
.all(|(l, r)| {
|
.all(|(l, r)| {
|
||||||
get_node_depth(l.target_parent()) != get_node_depth(r.target_parent())
|
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!(
|
if stdx::never!(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue