lynx-dev
[Top][All Lists]
Advanced

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

lynx-dev problem with highlighting current link


From: Hataguchi Takeshi
Subject: lynx-dev problem with highlighting current link
Date: Sat, 9 Mar 2002 16:17:29 +0900 (JST)

Lynx2-8-5dev.7 seems to have a problem when whereis target string,
which includes Japanese and is top of the second line in the link
string, is in the current link.

I attached a sample file of this problem. It includes Japanese.  
When I search the word "ほげほげ", Lynx will display the page in 
wrong way.

  - Before Searching (It's OK):
        http://www.t3.rim.or.jp/~patakuti/tmp/lynx/fig6.png

  - After Searching (It's Bad!!):
        http://www.t3.rim.or.jp/~patakuti/tmp/lynx/fig7.png

This is a patch to fix the problem.

# It's probably needed the same fix also for UTF8 strings, 
# although I don't do it.
--
Takeshi Hataguchi
E-mail: address@hidden

diff -ru orig/lynx2-8-5/src/LYUtils.c lynx2-8-5/src/LYUtils.c
--- orig/lynx2-8-5/src/LYUtils.c        Wed Jan  2 10:30:08 2002
+++ lynx2-8-5/src/LYUtils.c     Sat Mar  9 15:41:16 2002
@@ -652,7 +652,7 @@
                        TargetEmphasisON = TRUE;
                        LYaddstr(tmp);
                    } else {
-                       LYmove(hLine, (offset + 1));
+                       LYmove(hLine, (offset + 2));
                    }
                    tmp[1] = '\0';
                    written += 2;

Attachment: hiliteCurLink.html
Description: Binary data


reply via email to

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