Skip to content

Commit

Permalink
style: fixes unused_parens warnings on nightly builds (helix-editor…
Browse files Browse the repository at this point in the history
  • Loading branch information
sabify authored Aug 18, 2022
1 parent bdd1192 commit 1577a9d
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 @@ -875,8 +875,8 @@ fn goto_window(cx: &mut Context, align: Align) {
let last_line = view.last_line(doc);

let line = match align {
Align::Top => (view.offset.row + scrolloff + count),
Align::Center => (view.offset.row + ((last_line - view.offset.row) / 2)),
Align::Top => view.offset.row + scrolloff + count,
Align::Center => view.offset.row + ((last_line - view.offset.row) / 2),
Align::Bottom => last_line.saturating_sub(scrolloff + count),
}
.max(view.offset.row + scrolloff)
Expand Down

0 comments on commit 1577a9d

Please sign in to comment.