From dbafc61f6da79da9aa06eafc01a77f1a7af9607c Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Fri, 15 Mar 2002 18:48:55 +0000 Subject: part of [w3m-dev-en 00713] contrib: unofficial "current page info" patch, updated for w3m-0.3 by Moritz Barsnick * map.c (page_info_panel): s/line/lines/ s/byte/bytes/ anchor for URL of current anchor From: Fumitoshi UKAI --- ChangeLog | 10 +++++++++- map.c | 10 ++++++---- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5ca0ff7..eadb9b5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2002-03-16 Fumitoshi UKAI + + * part of [w3m-dev-en 00713] contrib: unofficial "current page info" patch, updated for w3m-0.3 + by Moritz Barsnick + * map.c (page_info_panel): s/line/lines/ + s/byte/bytes/ + anchor for URL of current anchor + 2002-03-16 Fumitoshi UKAI * -title support @@ -3227,4 +3235,4 @@ * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.354 2002/03/15 18:33:31 ukai Exp $ +$Id: ChangeLog,v 1.355 2002/03/15 18:48:55 ukai Exp $ diff --git a/map.c b/map.c index ebe63be..4a5440d 100644 --- a/map.c +++ b/map.c @@ -1,4 +1,4 @@ -/* $Id: map.c,v 1.7 2002/02/08 11:45:07 ukai Exp $ */ +/* $Id: map.c,v 1.8 2002/03/15 18:48:55 ukai Exp $ */ /* * client-side image maps */ @@ -360,20 +360,22 @@ page_info_panel(Buffer *buf) Strcat_charp(tmp, "Document Code"); Strcat_charp(tmp, code_to_str(buf->document_code)); #endif /* JP_CHARSET */ - Strcat_charp(tmp, "Number of line"); + Strcat_charp(tmp, "Number of lines"); all = buf->allLine; if (all == 0 && buf->lastLine) all = buf->lastLine->linenumber; Strcat(tmp, Sprintf("%d", all)); - Strcat_charp(tmp, "Transferred byte"); + Strcat_charp(tmp, "Transferred bytes"); Strcat(tmp, Sprintf("%d", buf->trbyte)); a = retrieveCurrentAnchor(buf); if (a != NULL) { + char *aurl; parseURL2(a->url, &pu, baseURL(buf)); s = parsedURL2Str(&pu); + aurl = html_quote(s->ptr); Strcat_charp(tmp, "URL of current anchor"); - Strcat_charp(tmp, html_quote(s->ptr)); + Strcat_m_charp(tmp, "", aurl, "", NULL); } a = retrieveCurrentImg(buf); if (a != NULL) { -- cgit v1.2.3