diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-01-31 16:14:22 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-01-31 16:14:22 +0000 |
commit | 1ecacc5ad1b4a14bd37548a5a2fd4920117753eb (patch) | |
tree | 301a9f226c1387f586ded189dd6182fe72de603e /main.c | |
parent | [w3m-dev 03719] Re: Too slow when loading big file with fold_line=1 (diff) | |
download | w3m-1ecacc5ad1b4a14bd37548a5a2fd4920117753eb.tar.gz w3m-1ecacc5ad1b4a14bd37548a5a2fd4920117753eb.zip |
[w3m-dev 03720] mark remains
* main.c (srchcore): PREC_NUM
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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; |