From b5ffa7c020e319cbfceee3c506f5c16764800dc2 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Thu, 4 Jun 1998 14:28:00 -0400 Subject: snapshot of project "lynx", label v2-8-1dev_14 --- WWW/Library/Implementation/HTFormat.c | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'WWW/Library/Implementation/HTFormat.c') 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; -- cgit 1.4.1-2-gfad0