w3m

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

commit 7a413e496fdc5000c2af3d018ace2743249a6d7c
parent a0c2bd23b22a2dd47e976dab270faa3590006d2e
Author: ukai <ukai>
Date:   Fri, 15 Mar 2002 18:48:55 +0000

part of [w3m-dev-en 00713] contrib: unofficial "current page info" patch, updated for w3m-0.3
  by Moritz Barsnick <barsnick@gmx.net>
* map.c (page_info_panel): s/line/lines/
			s/byte/bytes/
			anchor for URL of current anchor
From: Fumitoshi UKAI  <ukai@debian.or.jp>

Diffstat:
MChangeLog | 8++++++++
Mmap.c | 8+++++---
2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,5 +1,13 @@ 2002-03-16 Fumitoshi UKAI <ukai@debian.or.jp> + * part of [w3m-dev-en 00713] contrib: unofficial "current page info" patch, updated for w3m-0.3 + by Moritz Barsnick <barsnick@gmx.net> + * map.c (page_info_panel): s/line/lines/ + s/byte/bytes/ + anchor for URL of current anchor + +2002-03-16 Fumitoshi UKAI <ukai@debian.or.jp> + * -title support modified [w3m-dev-en 00710] contrib: unofficial "xterm title" patch, updated for w3m-0.3 by Moritz Barsnick <barsnick@gmx.net> diff --git a/map.c b/map.c @@ -360,20 +360,22 @@ page_info_panel(Buffer *buf) Strcat_charp(tmp, "<tr><td nowrap>Document Code<td>"); Strcat_charp(tmp, code_to_str(buf->document_code)); #endif /* JP_CHARSET */ - Strcat_charp(tmp, "<tr><td nowrap>Number of line<td>"); + Strcat_charp(tmp, "<tr><td nowrap>Number of lines<td>"); all = buf->allLine; if (all == 0 && buf->lastLine) all = buf->lastLine->linenumber; Strcat(tmp, Sprintf("%d", all)); - Strcat_charp(tmp, "<tr><td nowrap>Transferred byte<td>"); + Strcat_charp(tmp, "<tr><td nowrap>Transferred bytes<td>"); 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, "<tr><td nowrap>URL of current anchor<td>"); - Strcat_charp(tmp, html_quote(s->ptr)); + Strcat_m_charp(tmp, "<a href=\"", aurl, "\">", aurl, "</a>", NULL); } a = retrieveCurrentImg(buf); if (a != NULL) {