Merge pull request #1685 from zed-industries/vim-text-objects

Vim Text Objects and Numeric Repitions
This commit is contained in:
Kay Simmons 2022-10-11 16:36:19 -07:00 committed by GitHub
commit 81a3a22379
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
79 changed files with 3861 additions and 2462 deletions

View file

@ -4095,7 +4095,7 @@ impl Editor {
self.change_selections(Some(Autoscroll::Fit), cx, |s| {
s.move_cursors_with(|map, head, _| {
(
movement::line_beginning(map, head, true),
movement::indented_line_beginning(map, head, true),
SelectionGoal::None,
)
});
@ -4110,7 +4110,7 @@ impl Editor {
self.change_selections(Some(Autoscroll::Fit), cx, |s| {
s.move_heads_with(|map, head, _| {
(
movement::line_beginning(map, head, action.stop_at_soft_wraps),
movement::indented_line_beginning(map, head, action.stop_at_soft_wraps),
SelectionGoal::None,
)
});