aboutsummaryrefslogtreecommitdiffstats
path: root/search.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-03-05 18:56:28 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-03-05 18:56:28 +0000
commit5ef48c8f2ee7b5720195590e12ef8e2463004617 (patch)
tree23ee2707d4b97bd598375c589a3aa1ed44e43f4a /search.c
parent[w3m-dev 03792] URL match string (diff)
downloadw3m-5ef48c8f2ee7b5720195590e12ef8e2463004617.tar.gz
w3m-5ef48c8f2ee7b5720195590e12ef8e2463004617.zip
[w3m-dev 03793] incremental search fix
main.c (dispincsrch): revert sbuf.pos fix start from next position in next forward search (srch): start from next position in forward saerch if not found, restore original position (srch_nxtprv): start from next position in next forward search * search.c (forwardSearch): search from current position (dispincsrch): start from current position in case of From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r--search.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/search.c b/search.c
index 9c65c1c..7b88c08 100644
--- a/search.c
+++ b/search.c
@@ -1,4 +1,4 @@
-/* $Id: search.c,v 1.28 2003/03/05 18:19:17 ukai Exp $ */
+/* $Id: search.c,v 1.29 2003/03/05 18:56:30 ukai Exp $ */
#include "fm.h"
#include "regex.h"
#include <signal.h>
@@ -107,7 +107,7 @@ forwardSearch(Buffer *buf, char *str)
if (l == NULL) {
return SR_NOTFOUND;
}
- pos = buf->pos + 1;
+ pos = buf->pos;
if (l->bpos) {
pos += l->bpos;
while (l->bpos && l->prev)