Rename selected_ranges and selected_display_ranges to remove redundant selected
This commit is contained in:
parent
de9dc27980
commit
c3a36e6d8a
8 changed files with 197 additions and 226 deletions
|
@ -5499,11 +5499,11 @@ mod tests {
|
|||
Some((worktree_id, "2.txt").into())
|
||||
);
|
||||
assert_eq!(
|
||||
editor_b2.read_with(cx_b, |editor, cx| editor.selections.selected_ranges(cx)),
|
||||
editor_b2.read_with(cx_b, |editor, cx| editor.selections.ranges(cx)),
|
||||
vec![2..3]
|
||||
);
|
||||
assert_eq!(
|
||||
editor_b1.read_with(cx_b, |editor, cx| editor.selections.selected_ranges(cx)),
|
||||
editor_b1.read_with(cx_b, |editor, cx| editor.selections.ranges(cx)),
|
||||
vec![0..1]
|
||||
);
|
||||
|
||||
|
@ -5546,7 +5546,7 @@ mod tests {
|
|||
});
|
||||
editor_b1
|
||||
.condition(cx_b, |editor, cx| {
|
||||
editor.selections.selected_ranges(cx) == vec![1..1, 2..2]
|
||||
editor.selections.ranges(cx) == vec![1..1, 2..2]
|
||||
})
|
||||
.await;
|
||||
|
||||
|
@ -5561,7 +5561,7 @@ mod tests {
|
|||
});
|
||||
editor_b1
|
||||
.condition(cx_b, |editor, cx| {
|
||||
editor.selections.selected_ranges(cx) == vec![3..3]
|
||||
editor.selections.ranges(cx) == vec![3..3]
|
||||
})
|
||||
.await;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue