Skip to content

Commit

Permalink
run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderDickie committed Aug 21, 2023
1 parent 5a48de0 commit 8563f4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1542,7 +1542,7 @@ pub fn scroll(cx: &mut Context, offset: usize, direction: Direction, sync_cursor
};
// TODO: When inline diagnostics gets merged- 1. move_vertically_visual removes
// line annotations/diagnostics so the cursor may jump further than the view.
// 2. If the cursor lands on a complete line of virtual text, the cursor will
// 2. If the cursor lands on a complete line of virtual text, the cursor will
// jump a different distance than the view.
let selection = doc.selection(view.id).clone().transform(|range| {
move_vertically_visual(
Expand All @@ -1558,7 +1558,7 @@ pub fn scroll(cx: &mut Context, offset: usize, direction: Direction, sync_cursor
doc.set_selection(view.id, selection);
return;
}

let mut head;
match direction {
Forward => {
Expand Down

0 comments on commit 8563f4b

Please sign in to comment.