diff options
Diffstat (limited to '')
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | main.c | 10 |
2 files changed, 13 insertions, 4 deletions
@@ -1,3 +1,8 @@ +2003-02-01 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp> + + * [w3m-dev 03720] mark remains + * main.c (srchcore): PREC_NUM + 2003-01-31 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp> * [w3m-dev 03719] Re: Too slow when loading big file with fold_line=1 @@ -6990,4 +6995,4 @@ a * [w3m-dev 03276] compile error on EWS4800 * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.732 2003/01/30 16:48:40 ukai Exp $ +$Id: ChangeLog,v 1.733 2003/01/31 16:14:22 ukai Exp $ @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.207 2003/01/30 16:35:38 ukai Exp $ */ +/* $Id: main.c,v 1.208 2003/01/31 16:14:26 ukai Exp $ */ #define MAINPROGRAM #include "fm.h" #include <signal.h> @@ -1566,9 +1566,13 @@ srchcore(char *str, int (*func) (Buffer *, char *)) prevtrap = signal(SIGINT, intTrap); crmode(); - if (SETJMP(IntReturn) == 0) - for (i = 0; i < PREC_NUM; i++) + if (SETJMP(IntReturn) == 0) { + for (i = 0; i < PREC_NUM; i++) { result = func(Currentbuf, SearchString); + if (i < PREC_NUM - 1 && result & SR_FOUND) + clear_mark(Currentbuf->currentLine); + } + } signal(SIGINT, prevtrap); term_raw(); return result; |