Merge pull request #973 from zed-industries/selections-refactor
Pull selections out of editor into selections collection
This commit is contained in:
commit
2f7eb6dbc5
22 changed files with 1998 additions and 1722 deletions
|
@ -145,11 +145,9 @@ impl ProjectSymbolsView {
|
|||
|
||||
let editor = workspace.open_project_item::<Editor>(buffer, cx);
|
||||
editor.update(cx, |editor, cx| {
|
||||
editor.select_ranges(
|
||||
[position..position],
|
||||
Some(Autoscroll::Center),
|
||||
cx,
|
||||
);
|
||||
editor.change_selections(Some(Autoscroll::Center), cx, |s| {
|
||||
s.select_ranges([position..position])
|
||||
});
|
||||
});
|
||||
});
|
||||
Ok::<_, anyhow::Error>(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue