From e88a8e8eb288e563ecbb2024bcf15b7798a9d431 Mon Sep 17 00:00:00 2001 From: Jeffrey Finkelstein Date: Wed, 15 Dec 2021 20:49:41 -0500 Subject: [PATCH] more: return Ok in main loop --- src/uu/more/src/more.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }