diff options
author | Saber Haj Rabiee | 2022-08-18 23:07:18 +0000 |
---|---|---|
committer | GitHub | 2022-08-18 23:07:18 +0000 |
commit | 1577a9d0ab147b90152c08ac831d250d8d8d3aab (patch) | |
tree | be4caf6c81d0e0ca5cc891885a3c8d184d421f3b /helix-term/src | |
parent | bdd1192a358bfb4dd25d7cf19362336f8f05b436 (diff) |
style: fixes `unused_parens` warnings on nightly builds (#3471)
Diffstat (limited to 'helix-term/src')
-rw-r--r-- | helix-term/src/commands.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index ae50ed7c..ccc959c6 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -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) |