more: return Ok in main loop

This commit is contained in:
Jeffrey Finkelstein 2021-12-15 20:49:41 -05:00
parent 83201ecb35
commit e88a8e8eb2

View file

@ -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();
}