aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-12-24 17:24:05 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-12-24 17:24:05 +0000
commitb1266c7a32461892ef98013dbb3985f366c699ab (patch)
tree62f859d021c4b298db85dfa388c24dc6c323c59f
parent[w3m-dev 03595] tolower, toupper (diff)
downloadw3m-b1266c7a32461892ef98013dbb3985f366c699ab.tar.gz
w3m-b1266c7a32461892ef98013dbb3985f366c699ab.zip
[w3m-dev 03596] LIST
* anchor.c (link_list_panel): check internal From: Hiroaki Shimotsu <shim@d5.bs1.fc.nec.co.jp>
-rw-r--r--ChangeLog7
-rw-r--r--anchor.c8
2 files changed, 13 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 54d90b4..067bcdd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-12-25 Hiroaki Shimotsu <shim@d5.bs1.fc.nec.co.jp>
+
+ * [w3m-dev 03596] LIST
+ * anchor.c (link_list_panel): check internal
+
2002-12-25 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03595] tolower, toupper
@@ -6044,4 +6049,4 @@ a * [w3m-dev 03276] compile error on EWS4800
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.642 2002/12/24 17:20:45 ukai Exp $
+$Id: ChangeLog,v 1.643 2002/12/24 17:24:05 ukai Exp $
diff --git a/anchor.c b/anchor.c
index f3f1724..f4e51ee 100644
--- a/anchor.c
+++ b/anchor.c
@@ -1,4 +1,4 @@
-/* $Id: anchor.c,v 1.15 2002/12/16 15:41:27 ukai Exp $ */
+/* $Id: anchor.c,v 1.16 2002/12/24 17:24:05 ukai Exp $ */
#include "fm.h"
#include "myctype.h"
#include "regex.h"
@@ -622,6 +622,12 @@ link_list_panel(Buffer *buf)
Str tmp = Strnew_charp("<title>Link List</title>\
<h1 align=center>Link List</h1>\n");
+ if (buf->bufferprop & BP_INTERNAL ||
+ (buf->linklist == NULL && buf->href == NULL &&
+ buf->img == NULL)) {
+ return NULL;
+ }
+
if (buf->linklist) {
Strcat_charp(tmp, "<hr><h2>Links</h2>\n<ol>\n");
for (l = buf->linklist; l; l = l->next) {