w3m

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

commit a62709b092ed85e24f0b7fc6c860f5ff40075a42
parent 60e8546efbabc54aaf547133ea8e31ad37a021b6
Author: ukai <ukai>
Date:   Fri, 31 Jan 2003 16:14:22 +0000

[w3m-dev 03720] mark remains
* main.c (srchcore): PREC_NUM
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>

Diffstat:
MChangeLog | 5+++++
Mmain.c | 8++++++--
2 files changed, 11 insertions(+), 2 deletions(-)

diff --git 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 diff --git a/main.c b/main.c @@ -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;