mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fixed bug where pager(1) prints a line too much.
This commit is contained in:
parent
5e317c9726
commit
a6a296a971
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ int main(int argc, char* argv[])
|
|||
if ( c == '\n' ) { charleft = WIDTH; }
|
||||
bool eol = (c == '\n') || !charleft;
|
||||
if ( eol ) { charleft = WIDTH; }
|
||||
if ( eol && !linesleft )
|
||||
if ( eol && linesleft <= 1 )
|
||||
{
|
||||
printf("\n--pager--");
|
||||
fflush(stdout);
|
||||
|
|
Loading…
Add table
Reference in a new issue