[w3m-dev 02418]
main.c: mailto: like pattern to mark as anchor
search.c: check NULL
add disp_message() by ukai
This commit is contained in:
@@ -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>
|
2001-11-16 Dai Sato <satodai@dog.intcul.tohoku.ac.jp>
|
||||||
|
|
||||||
* configure: [w3m-dev-en 00641] Re: w3m-0.2.1-inu-1.6
|
* configure: [w3m-dev-en 00641] Re: w3m-0.2.1-inu-1.6
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/* $Id: main.c,v 1.5 2001/11/16 03:58:49 ukai Exp $ */
|
/* $Id: main.c,v 1.6 2001/11/16 17:25:52 ukai Exp $ */
|
||||||
#define MAINPROGRAM
|
#define MAINPROGRAM
|
||||||
#include "fm.h"
|
#include "fm.h"
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
@@ -4005,6 +4005,7 @@ chkURL(void)
|
|||||||
"news:[^<> ][^<> ]*",
|
"news:[^<> ][^<> ]*",
|
||||||
"nntp://[a-zA-Z0-9][a-zA-Z0-9:%\\-\\./_]*",
|
"nntp://[a-zA-Z0-9][a-zA-Z0-9:%\\-\\./_]*",
|
||||||
#endif /* USE_NNTP */
|
#endif /* USE_NNTP */
|
||||||
|
"mailto:[^<> ][^<> ]*@[a-zA-Z0-9][a-zA-Z0-9\\-\\._]*[a-zA-Z0-9]",
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
int i;
|
int i;
|
||||||
|
|||||||
@@ -14,6 +14,10 @@ forwardSearch(Buffer * buf, char *str)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
l = begin = buf->currentLine;
|
l = begin = buf->currentLine;
|
||||||
|
if (l == NULL) {
|
||||||
|
disp_message("Not found", FALSE);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
pos = buf->pos + 1;
|
pos = buf->pos + 1;
|
||||||
#ifdef JP_CHARSET
|
#ifdef JP_CHARSET
|
||||||
if (l->propBuf[pos] & PC_KANJI2)
|
if (l->propBuf[pos] & PC_KANJI2)
|
||||||
@@ -78,6 +82,10 @@ backwardSearch(Buffer * buf, char *str)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
l = begin = buf->currentLine;
|
l = begin = buf->currentLine;
|
||||||
|
if (l == NULL) {
|
||||||
|
disp_message("Not found", FALSE);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
if (buf->pos > 0) {
|
if (buf->pos > 0) {
|
||||||
pos = buf->pos - 1;
|
pos = buf->pos - 1;
|
||||||
#ifdef JP_CHARSET
|
#ifdef JP_CHARSET
|
||||||
|
|||||||
Reference in New Issue
Block a user