aboutsummaryrefslogtreecommitdiffstats
path: root/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'search.c')
-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)