Revert "Remove into SelectionEffects
from .change_selections"
This reverts commit 28380d714d
.
This commit is contained in:
parent
28380d714d
commit
6e762d9c05
65 changed files with 625 additions and 837 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue