diff --git a/src/uu/more/src/more.rs b/src/uu/more/src/more.rs index e2fc109e8..dc5acbff8 100644 --- a/src/uu/more/src/more.rs +++ b/src/uu/more/src/more.rs @@ -263,7 +263,7 @@ fn more(buff: &str, stdout: &mut Stdout, next_file: Option<&str>, silent: bool) modifiers: KeyModifiers::NONE, }) => { if pager.should_close() { - return; + return Ok(()); } else { pager.next_line(); }