w3m

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

commit d93175401454d2967b95907dca8e3b7be2c88f79
parent 050724374229db1c47d3bc03e04beef7d0ae86c2
Author: ukai <ukai>
Date:   Fri, 16 Nov 2001 17:25:52 +0000

[w3m-dev 02418]
main.c: mailto: like pattern to mark as anchor
search.c: check NULL
          add disp_message() by ukai

Diffstat:
MChangeLog | 8++++++++
Mmain.c | 1+
Msearch.c | 8++++++++
3 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,11 @@ +2001-11-16 Tsutomu Okada <okada@furuno.co.jp> + + * main.c (chkURL): add mailto: like pattern to mark as anchor + + * search.c (forwardSearch): check whether currentLine is NULL + + * search.c (backwardSearch): ditto + 2001-11-16 Dai Sato <satodai@dog.intcul.tohoku.ac.jp> * configure: [w3m-dev-en 00641] Re: w3m-0.2.1-inu-1.6 diff --git a/main.c b/main.c @@ -4005,6 +4005,7 @@ chkURL(void) "news:[^<> ][^<> ]*", "nntp://[a-zA-Z0-9][a-zA-Z0-9:%\\-\\./_]*", #endif /* USE_NNTP */ + "mailto:[^<> ][^<> ]*@[a-zA-Z0-9][a-zA-Z0-9\\-\\._]*[a-zA-Z0-9]", NULL, }; int i; diff --git a/search.c b/search.c @@ -14,6 +14,10 @@ forwardSearch(Buffer * buf, char *str) return FALSE; } l = begin = buf->currentLine; + if (l == NULL) { + disp_message("Not found", FALSE); + return FALSE; + } pos = buf->pos + 1; #ifdef JP_CHARSET if (l->propBuf[pos] & PC_KANJI2) @@ -78,6 +82,10 @@ backwardSearch(Buffer * buf, char *str) return FALSE; } l = begin = buf->currentLine; + if (l == NULL) { + disp_message("Not found", FALSE); + return FALSE; + } if (buf->pos > 0) { pos = buf->pos - 1; #ifdef JP_CHARSET