diff options
Diffstat (limited to 'WWW/Library/Implementation/HTFormat.c')
-rw-r--r-- | WWW/Library/Implementation/HTFormat.c | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/WWW/Library/Implementation/HTFormat.c b/WWW/Library/Implementation/HTFormat.c index db0b59c1..fb7705e3 100644 --- a/WWW/Library/Implementation/HTFormat.c +++ b/WWW/Library/Implementation/HTFormat.c @@ -579,8 +579,11 @@ PUBLIC int HTCopy ARGS4( (*targetClass.put_block)(sink, input_buffer, status); #ifdef DISP_PARTIAL - if (display_partial) - HText_pageDisplay(Newline,""); + if (display_partial && + ((Newline_partial + display_lines) > NumOfLines_partial)) { + NumOfLines_partial = HText_getNumOfLines(); + HText_pageDisplay(Newline_partial, ""); + } #endif /* DISP_PARTIAL */ bytes += status; @@ -644,8 +647,11 @@ PUBLIC int HTFileCopy ARGS2( (*targetClass.put_block)(sink, input_buffer, status); #ifdef DISP_PARTIAL - if (display_partial) - HText_pageDisplay(Newline,""); + if (display_partial && + ((Newline_partial + display_lines) > NumOfLines_partial)) { + NumOfLines_partial = HText_getNumOfLines(); + HText_pageDisplay(Newline_partial, ""); + } #endif /* DISP_PARTIAL */ bytes += status; @@ -738,8 +744,11 @@ PRIVATE int HTGzFileCopy ARGS2( (*targetClass.put_block)(sink, input_buffer, status); #ifdef DISP_PARTIAL - if (display_partial) - HText_pageDisplay(Newline,""); + if (display_partial && + ((Newline_partial + display_lines) > NumOfLines_partial)) { + NumOfLines_partial = HText_getNumOfLines(); + HText_pageDisplay(Newline_partial, ""); + } #endif /* DISP_PARTIAL */ bytes += status; |