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

Merge pull request #2772 from jfinkels/more-return-result

more: return Ok in main loop
This commit is contained in:
Sylvestre Ledru 2021-12-16 09:50:36 +01:00 committed by GitHub
commit ca705e5ad2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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