diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index aabfdf193689..442b6839d22f 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -1549,7 +1549,7 @@ pub fn scroll(cx: &mut Context, offset: usize, direction: Direction, sync_cursor doc_text, range, direction, - offset.abs() as usize, + offset.unsigned_abs(), movement, &text_fmt, &mut annotations,