w3m

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

commit bb3500f2f0face0fd9ded432012df78fe3188e49
parent 7a84f5840407f54e0cc914721f51649c1f76bd53
Author: ukai <ukai>
Date:   Fri,  2 May 2003 15:49:59 +0000

[w3m-dev 03887] Re: I-search problem
* main.c (dispincsrch): don't move cursor if not found.
From: Hiroyuki Ito <hito@crl.go.jp>

Diffstat:
MChangeLog | 5+++++
Mmain.c | 6+++++-
2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,8 @@ +2003-05-03 Hiroyuki Ito <hito@crl.go.jp> + + * [w3m-dev 03887] Re: I-search problem + * main.c (dispincsrch): don't move cursor if not found. + 2003-04-27 qhwt@myrealbox.com * [w3m-dev 03886] Re: POSTing patch (Re: User-Agent for Bonus/2ch.cgi) diff --git a/main.c b/main.c @@ -1626,7 +1626,11 @@ dispincsrch(int ch, Str buf, Lineprop *prop) if (searchRoutine == forwardSearch) Currentbuf->pos += 1; SAVE_BUFPOSITION(&sbuf); - srchcore(str, searchRoutine); + if (srchcore(str, searchRoutine) == SR_NOTFOUND + && searchRoutine == forwardSearch) { + Currentbuf->pos -= 1; + SAVE_BUFPOSITION(&sbuf); + } arrangeCursor(Currentbuf); displayBuffer(Currentbuf, B_FORCE_REDRAW); clear_mark(Currentbuf->currentLine);