w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit 41dbc2d5efc08c106e408ac95c552b88bb9dc85b
parent 51dba641d878aefb1a12a9ede707dddfd1544108
Author: ukai <ukai>
Date:   Tue, 24 Dec 2002 17:24:05 +0000

[w3m-dev 03596] LIST
* anchor.c (link_list_panel): check internal
From: Hiroaki Shimotsu <shim@d5.bs1.fc.nec.co.jp>

Diffstat:
MChangeLog | 5+++++
Manchor.c | 6++++++
2 files changed, 11 insertions(+), 0 deletions(-)

diff --git 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 diff --git a/anchor.c b/anchor.c @@ -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) {