aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorSaber Haj Rabiee2022-08-18 23:07:18 +0000
committerGitHub2022-08-18 23:07:18 +0000
commit1577a9d0ab147b90152c08ac831d250d8d8d3aab (patch)
treebe4caf6c81d0e0ca5cc891885a3c8d184d421f3b /helix-term/src
parentbdd1192a358bfb4dd25d7cf19362336f8f05b436 (diff)
style: fixes `unused_parens` warnings on nightly builds (#3471)
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/commands.rs4
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)