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
|
@ -4,6 +4,7 @@ use editor::{
|
|||
movement::{
|
||||
self, FindRange, TextLayoutDetails, find_boundary, find_preceding_boundary_display_point,
|
||||
},
|
||||
scroll::Autoscroll,
|
||||
};
|
||||
use gpui::{Action, Context, Window, actions, px};
|
||||
use language::{CharKind, Point, Selection, SelectionGoal};
|
||||
|
@ -625,7 +626,7 @@ impl Vim {
|
|||
Mode::Visual | Mode::VisualLine | Mode::VisualBlock => {
|
||||
if !prior_selections.is_empty() {
|
||||
self.update_editor(window, cx, |_, editor, window, cx| {
|
||||
editor.change_selections(Default::default(), window, cx, |s| {
|
||||
editor.change_selections(Some(Autoscroll::fit()), window, cx, |s| {
|
||||
s.select_ranges(prior_selections.iter().cloned())
|
||||
})
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue