From b1266c7a32461892ef98013dbb3985f366c699ab Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Tue, 24 Dec 2002 17:24:05 +0000 Subject: [w3m-dev 03596] LIST * anchor.c (link_list_panel): check internal From: Hiroaki Shimotsu --- anchor.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'anchor.c') 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("Link List\

Link List

\n"); + if (buf->bufferprop & BP_INTERNAL || + (buf->linklist == NULL && buf->href == NULL && + buf->img == NULL)) { + return NULL; + } + if (buf->linklist) { Strcat_charp(tmp, "

Links

\n
    \n"); for (l = buf->linklist; l; l = l->next) { -- cgit v1.2.3