mirror of
https://github.com/uutils/coreutils
synced 2024-12-17 16:43:16 +00:00
Fixed hanging with smaller content
Using 'seq 10 | cargo run -- more' should no longer hangs. Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com>
This commit is contained in:
parent
28c6fad6e3
commit
9ed5091be6
1 changed files with 1 additions and 1 deletions
|
@ -293,7 +293,7 @@ impl<'a> Pager<'a> {
|
||||||
fn should_close(&mut self) -> bool {
|
fn should_close(&mut self) -> bool {
|
||||||
self.upper_mark
|
self.upper_mark
|
||||||
.saturating_add(self.content_rows.into())
|
.saturating_add(self.content_rows.into())
|
||||||
.eq(&self.line_count)
|
.ge(&self.line_count)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn page_down(&mut self) {
|
fn page_down(&mut self) {
|
||||||
|
|
Loading…
Reference in a new issue