Revert "Remove into SelectionEffects from .change_selections"

This reverts commit 28380d714d.
This commit is contained in:
Conrad Irwin 2025-06-27 14:06:17 -06:00
parent 28380d714d
commit 6e762d9c05
65 changed files with 625 additions and 837 deletions

View file

@ -4,7 +4,7 @@ pub mod popover_menu;
use anyhow::Result;
use editor::{
Editor, SelectionEffects,
Editor,
actions::{MoveDown, MoveUp},
scroll::Autoscroll,
};
@ -695,12 +695,9 @@ impl<D: PickerDelegate> Picker<D> {
editor.update(cx, |editor, cx| {
editor.set_text(query, window, cx);
let editor_offset = editor.buffer().read(cx).len(cx);
editor.change_selections(
SelectionEffects::scroll(Autoscroll::Next),
window,
cx,
|s| s.select_ranges(Some(editor_offset..editor_offset)),
);
editor.change_selections(Some(Autoscroll::Next), window, cx, |s| {
s.select_ranges(Some(editor_offset..editor_offset))
});
});
}
}