diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1998-08-21 13:30:00 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1998-08-21 13:30:00 -0400 |
commit | 3c7cb4bbcd56c17e1abba05f20d001a2484d9919 (patch) | |
tree | 30f608a2a7c6355ee69d6b061ed3fd458010ad75 /WWW/Library/Implementation/HTFormat.c | |
parent | 0eae931d4f0fd1194dfcd978c3d94079b710923f (diff) | |
download | lynx-snapshots-3c7cb4bbcd56c17e1abba05f20d001a2484d9919.tar.gz |
snapshot of project "lynx", label v2-8-1dev_22
Diffstat (limited to 'WWW/Library/Implementation/HTFormat.c')
-rw-r--r-- | WWW/Library/Implementation/HTFormat.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/WWW/Library/Implementation/HTFormat.c b/WWW/Library/Implementation/HTFormat.c index 3c20fc0a..58afc4b8 100644 --- a/WWW/Library/Implementation/HTFormat.c +++ b/WWW/Library/Implementation/HTFormat.c @@ -488,14 +488,24 @@ PRIVATE void HTDisplayPartial NOARGS ** ** Update NumOfLines_partial only if we repaint the display, ** so it corresponds to real number of displayed lines. - ** Repaint the page only if Newline_partial - ** in our hand is fact: + ** Repaint the page only when necessary: */ - if ((Newline_partial <= HText_getNumOfLines()) && - ((Newline_partial + display_lines) > NumOfLines_partial)) { + if ((Newline_partial + display_lines) > NumOfLines_partial) { + /* current page not complete... */ + if ((Newline_partial + 2) < HText_getNumOfLines()) { + /* and we MAY display at least a couple of lines on the top. + ** + ** Note: we check the lines in _rendered_ document + ** and real HTML source may have several Kb of headers, + ** Javascript applets etc., which are not visible in lynx + ** and we got a delay (correct). + ** We should NOT try to repaint at that early stage + ** to avoid interfere with previously displayed document. - LP + */ NumOfLines_partial = HText_getNumOfLines(); HText_pageDisplay(Newline_partial, ""); } + } } } #else |