WIP: Start on go to line

This commit is contained in:
Antonio Scandurra
2021-11-24 18:45:36 +01:00
parent a743c2d8d7
commit cea8107242
6 changed files with 169 additions and 3 deletions
+3 -3
View File
@@ -994,7 +994,7 @@ impl Editor {
}
}
fn select_ranges<I, T>(&mut self, ranges: I, autoscroll: bool, cx: &mut ViewContext<Self>)
pub fn select_ranges<I, T>(&mut self, ranges: I, autoscroll: bool, cx: &mut ViewContext<Self>)
where
I: IntoIterator<Item = Range<T>>,
T: ToOffset,
@@ -1013,8 +1013,8 @@ impl Editor {
};
Selection {
id: post_inc(&mut self.next_selection_id),
start: start,
end: end,
start,
end,
reversed,
goal: SelectionGoal::None,
}