less: less <HUGEFILE + [End] busy loops, fix it
This commit is contained in:
parent
342b0ab945
commit
fdcfa2aba7
@ -347,8 +347,10 @@ static void read_lines(void)
|
||||
} else {
|
||||
flines[max_fline] = xrealloc(current_line, strlen(current_line)+1);
|
||||
}
|
||||
if (max_fline >= MAXLINES)
|
||||
if (max_fline >= MAXLINES) {
|
||||
eof_error = 0; /* Pretend we saw EOF */
|
||||
break;
|
||||
}
|
||||
if (max_fline > cur_fline + max_displayed_line)
|
||||
break;
|
||||
if (eof_error <= 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user