lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev partial link highlighting?


From: Leonid Pauzner
Subject: Re: lynx-dev partial link highlighting?
Date: Wed, 9 Sep 1998 02:19:41 +0400 (MSD)

>> I get hte same behavior configured as follows:
> ...
>> --le
>> > When I display a web page, the links are shown in inverse.
>> >
>> > When I go to <URL:http://www.tclconsortium.org/>, the text of the links I s
> ee
>> > only invert about 2/3 of the text.  A link with only 10 characters shows
>> > 6 characters inverted, etc.
>> >
>> > Anyone know why this might happen?

There is the fix against clean dev25,
use it until dev26 will be out.


* temp fix for HText_trimHightext side effect from partial mode by introducing
  a flag in HText_beginInput(), so this side effect still only happen on slow
  link to long document with forms input - LP





diff -u old/gridtext.c ./gridtext.c
--- old/gridtext.c      Mon Sep  7 03:02:16 1998
+++ ./gridtext.c        Tue Sep  8 15:58:02 1998
@@ -3200,7 +3200,6 @@
 PUBLIC void HText_endAppend ARGS1(
        HText *,        text)
 {
-    int cur_line, cur_char, cur_shift;
     HTLine *line_ptr;

     if (!text)
@@ -3227,9 +3226,6 @@
      *  Get the first line.
      */
     line_ptr = text->last_line->next;
-    cur_char = line_ptr->size;
-    cur_line = 0;
-    cur_shift = 0;

     /*
      *  Remove the blank lines at the end of document.
@@ -3256,9 +3252,10 @@
      *  Fix up the anchor structure values and
      *  create the hightext strings. - FM
      */
-    HText_trimHightext(HTMainText, FALSE);
+    HText_trimHightext(text, FALSE);
 }

+
 /*
 **  This function gets the hightext from the text by finding the char
 **  position, and brings the anchors in line with the text by adding the text
@@ -4071,15 +4068,19 @@
     CTRACE(tfp, "GridText: HText_pageDisplay at line %d started\n", line_num);

 #ifdef DISP_PARTIAL
-    if (display_partial && !debug_display_partial)
+    if (display_partial && detected_forms_input_partial) {
        /*
        **  Garbage is reported from forms input fields in incremental mode.
        **  So we start HText_trimHightext() to forget this side effect.
        **  This function was split-out from HText_endAppend().
        **  It may not be the best solution but it works. - LP
        **  (TRUE =  to disable annoying repeated trace messages)
+       **
+       **  Side effect is reported from multiply call of HText_trimHightext.
        */
        HText_trimHightext(HTMainText, TRUE);
+    }
+    detected_forms_input_partial = FALSE;
 #endif

     display_page(HTMainText, line_num-1, target);
@@ -6342,6 +6343,11 @@
     int i, j;

     CTRACE(tfp,"Entering HText_beginInput\n");
+
+#ifdef DISP_PARTIAL
+    if (display_partial)
+       detected_forms_input_partial = TRUE; /* trimHightext temp fix */
+#endif

     if (a == NULL || f == NULL)
        outofmem(__FILE__, "HText_beginInput");
diff -u old/lyglobal.h ./lyglobal.h
--- old/lyglobal.h      Mon Sep  7 03:02:16 1998
+++ ./lyglobal.h        Tue Sep  8 15:58:06 1998
@@ -250,10 +250,13 @@
 extern BOOLEAN keep_mime_headers; /* Include mime headers and *
                                   * force source dump        */
 extern BOOLEAN no_url_redirection;   /* Don't follow URL redirections */
+#ifdef DISP_PARTIAL
 extern BOOLEAN display_partial;      /* Display document during download */
 extern int Newline_partial;          /* -//- "current" newline position */
 extern int NumOfLines_partial;       /* -//- "current" number of lines */
 extern BOOLEAN debug_display_partial;  /* show with MessageSecs delay */
+extern BOOLEAN detected_forms_input_partial; /* trimHightext temp fix */
+#endif
 extern char *form_post_data;         /* User data for post form */
 extern char *form_get_data;          /* User data for get form */
 extern char *http_error_file;        /* Place HTTP status code in this file */
diff -u old/lymain.c ./lymain.c
--- old/lymain.c        Mon Sep  7 03:02:16 1998
+++ ./lymain.c  Tue Sep  8 15:58:10 1998
@@ -357,6 +357,7 @@
 #ifdef DISP_PARTIAL
 PUBLIC BOOLEAN display_partial = TRUE; /* Display document during download */
 PUBLIC BOOLEAN debug_display_partial = FALSE; /* Show with MessageSecs delay */
+PUBLIC BOOLEAN detected_forms_input_partial = FALSE; /* trimHightext temp fix 
*/
 #endif

 /* These are declared in cutil.h for current freeWAIS libraries. - FM */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]