1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

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, modifiers: KeyModifiers::NONE,
}) => { }) => {
if pager.should_close() { if pager.should_close() {
return; return Ok(());
} else { } else {
pager.next_line(); pager.next_line();
} }