diff options
author | Dai Sato <satodai@w3m.jp> | 2006-04-08 11:33:16 +0000 |
---|---|---|
committer | Dai Sato <satodai@w3m.jp> | 2006-04-08 11:33:16 +0000 |
commit | a60d99eb7b09e4d219bfdff0e787430a087699be (patch) | |
tree | ed201e768b69d97a3eba545bd57ea3e627f3dcc0 /anchor.c | |
parent | add explanations for .w3m/config and -o option. (diff) | |
download | w3m-a60d99eb7b09e4d219bfdff0e787430a087699be.tar.gz w3m-a60d99eb7b09e4d219bfdff0e787430a087699be.zip |
check A tag in HTMLlineproc2body().
Diffstat (limited to 'anchor.c')
-rw-r--r-- | anchor.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: anchor.c,v 1.32 2006/04/07 13:21:11 inu Exp $ */ +/* $Id: anchor.c,v 1.33 2006/04/08 11:33:16 inu Exp $ */ #include "fm.h" #include "myctype.h" #include "regex.h" @@ -175,6 +175,8 @@ searchAnchor(AnchorList *al, char *str) return NULL; for (i = 0; i < al->nanchor; i++) { a = &al->anchors[i]; + if (a->hseq < 0) + continue; if (!strcmp(a->url, str)) return a; } @@ -471,6 +473,7 @@ putHmarker(HmarkerList *ml, int line, int pos, int seq) } ml->marks[seq].line = line; ml->marks[seq].pos = pos; + ml->marks[seq].invalid = 0; return ml; } @@ -778,7 +781,7 @@ link_list_panel(Buffer *buf) al = buf->href; for (i = 0; i < al->nanchor; i++) { a = &al->anchors[i]; - if (a->slave) + if (a->hseq < 0 || a->slave) continue; parseURL2(a->url, &pu, baseURL(buf)); p = parsedURL2Str(&pu)->ptr; |