aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ChangeLog7
-rw-r--r--main.c8
2 files changed, 12 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 0622e20..632905a 100644
--- 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)
@@ -7775,4 +7780,4 @@ a * [w3m-dev 03276] compile error on EWS4800
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.829 2003/04/26 17:01:01 ukai Exp $
+$Id: ChangeLog,v 1.830 2003/05/02 15:49:59 ukai Exp $
diff --git a/main.c b/main.c
index ee293c6..efa2284 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.223 2003/04/14 16:19:29 ukai Exp $ */
+/* $Id: main.c,v 1.224 2003/05/02 15:49:59 ukai Exp $ */
#define MAINPROGRAM
#include "fm.h"
#include <signal.h>
@@ -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);