From afd292e3b9616ea9098ca3a7d24a730508b84809 Mon Sep 17 00:00:00 2001 From: Omnikar Date: Thu, 4 Aug 2022 01:32:59 -0400 Subject: Resolve clippy lints (#3307) --- helix-term/src/ui/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helix-term/src') diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 6ed9799b..f5598095 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -1011,7 +1011,7 @@ impl EditorView { None => return EventResult::Ignored(None), } - let offset = config.scroll_lines.abs() as usize; + let offset = config.scroll_lines.unsigned_abs(); commands::scroll(cxt, offset, direction); cxt.editor.tree.focus = current_view; -- cgit v1.2.3-70-g09d2