Revert "Remove into SelectionEffects from .change_selections"
This reverts commit 28380d714d.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use editor::{Anchor, Editor, ExcerptId, SelectionEffects, scroll::Autoscroll};
|
||||
use editor::{Anchor, Editor, ExcerptId, scroll::Autoscroll};
|
||||
use gpui::{
|
||||
App, AppContext as _, Context, Div, Entity, EventEmitter, FocusHandle, Focusable, Hsla,
|
||||
InteractiveElement, IntoElement, MouseButton, MouseDownEvent, MouseMoveEvent, ParentElement,
|
||||
@@ -340,7 +340,7 @@ impl Render for SyntaxTreeView {
|
||||
mem::swap(&mut range.start, &mut range.end);
|
||||
|
||||
editor.change_selections(
|
||||
SelectionEffects::scroll(Autoscroll::newest()),
|
||||
Some(Autoscroll::newest()),
|
||||
window, cx,
|
||||
|selections| {
|
||||
selections.select_ranges(vec![range]);
|
||||
|
||||
Reference in New Issue
Block a user