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
|
@ -897,7 +897,7 @@ mod tests {
|
|||
// Cursor is at the first diagnostic
|
||||
view.editor.update(cx, |editor, cx| {
|
||||
assert_eq!(
|
||||
editor.selections.selected_display_ranges(cx),
|
||||
editor.selections.display_ranges(cx),
|
||||
[DisplayPoint::new(12, 6)..DisplayPoint::new(12, 6)]
|
||||
);
|
||||
});
|
||||
|
@ -998,7 +998,7 @@ mod tests {
|
|||
// Cursor keeps its position.
|
||||
view.editor.update(cx, |editor, cx| {
|
||||
assert_eq!(
|
||||
editor.selections.selected_display_ranges(cx),
|
||||
editor.selections.display_ranges(cx),
|
||||
[DisplayPoint::new(19, 6)..DisplayPoint::new(19, 6)]
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue