chore: Fix several style lints (#17488)
It's not comprehensive enough to start linting on `style` group, but hey, it's a start. Release Notes: - N/A
This commit is contained in:
parent
93249fc82b
commit
e6c1c51b37
361 changed files with 3530 additions and 3587 deletions
|
@ -83,7 +83,7 @@ pub fn register(editor: &mut Editor, cx: &mut ViewContext<Vim>) {
|
|||
return;
|
||||
};
|
||||
let ranges = start
|
||||
.into_iter()
|
||||
.iter()
|
||||
.zip(end)
|
||||
.zip(reversed)
|
||||
.map(|((start, end), reversed)| (*start, *end, reversed))
|
||||
|
@ -229,7 +229,7 @@ impl Vim {
|
|||
head = movement::saturating_left(map, head);
|
||||
}
|
||||
|
||||
let Some((new_head, _)) = move_selection(&map, head, goal) else {
|
||||
let Some((new_head, _)) = move_selection(map, head, goal) else {
|
||||
return;
|
||||
};
|
||||
head = new_head;
|
||||
|
@ -479,7 +479,7 @@ impl Vim {
|
|||
let stable_anchors = editor
|
||||
.selections
|
||||
.disjoint_anchors()
|
||||
.into_iter()
|
||||
.iter()
|
||||
.map(|selection| {
|
||||
let start = selection.start.bias_left(&display_map.buffer_snapshot);
|
||||
start..start
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue