aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--main.c10
2 files changed, 13 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 58ca426..d679606 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 $
diff --git a/main.c b/main.c
index f1c5aa9..aa88d1f 100644
--- a/main.c
+++ b/main.c
@@ -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;