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
|
@ -19,10 +19,10 @@ use collections::{BTreeSet, HashMap, HashSet, hash_map};
|
|||
use db::kvp::KEY_VALUE_STORE;
|
||||
use editor::{
|
||||
AnchorRangeExt, Bias, DisplayPoint, Editor, EditorEvent, EditorSettings, ExcerptId,
|
||||
ExcerptRange, MultiBufferSnapshot, RangeToAnchorExt, SelectionEffects, ShowScrollbar,
|
||||
ExcerptRange, MultiBufferSnapshot, RangeToAnchorExt, ShowScrollbar,
|
||||
display_map::ToDisplayPoint,
|
||||
items::{entry_git_aware_label_color, entry_label_color},
|
||||
scroll::{Autoscroll, ScrollAnchor, ScrollbarAutoHide},
|
||||
scroll::{Autoscroll, AutoscrollStrategy, ScrollAnchor, ScrollbarAutoHide},
|
||||
};
|
||||
use file_icons::FileIcons;
|
||||
use fuzzy::{StringMatch, StringMatchCandidate, match_strings};
|
||||
|
@ -1099,7 +1099,7 @@ impl OutlinePanel {
|
|||
if change_selection {
|
||||
active_editor.update(cx, |editor, cx| {
|
||||
editor.change_selections(
|
||||
SelectionEffects::scroll(Autoscroll::center()),
|
||||
Some(Autoscroll::Strategy(AutoscrollStrategy::Center, None)),
|
||||
window,
|
||||
cx,
|
||||
|s| s.select_ranges(Some(anchor..anchor)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue