diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-03-05 18:56:28 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-03-05 18:56:28 +0000 |
commit | 5ef48c8f2ee7b5720195590e12ef8e2463004617 (patch) | |
tree | 23ee2707d4b97bd598375c589a3aa1ed44e43f4a /search.c | |
parent | [w3m-dev 03792] URL match string (diff) | |
download | w3m-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |