aboutsummaryrefslogtreecommitdiffstats
path: root/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'search.c')
-rw-r--r--search.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/search.c b/search.c
index d4a831c..db48c92 100644
--- a/search.c
+++ b/search.c
@@ -1,4 +1,3 @@
-/* $Id: search.c,v 1.3 2001/11/20 17:49:23 ukai Exp $ */
#include "fm.h"
#include "regex.h"
@@ -15,10 +14,8 @@ forwardSearch(Buffer * buf, char *str)
return FALSE;
}
l = begin = buf->currentLine;
- if (l == NULL) {
- disp_message("Not found", FALSE);
- return FALSE;
- }
+ if (l == NULL)
+ return FALSE;
pos = buf->pos + 1;
#ifdef JP_CHARSET
if (l->propBuf[pos] & PC_KANJI2)
@@ -83,10 +80,8 @@ backwardSearch(Buffer * buf, char *str)
return FALSE;
}
l = begin = buf->currentLine;
- if (l == NULL) {
- disp_message("Not found", FALSE);
- return FALSE;
- }
+ if (l == NULL)
+ return FALSE;
if (buf->pos > 0) {
pos = buf->pos - 1;
#ifdef JP_CHARSET