aboutsummaryrefslogtreecommitdiffstats
path: root/search.c
diff options
context:
space:
mode:
authorDai Sato <satodai@dog.intcul.tohoku.ac.jp>2001-11-22 17:52:28 +0000
committerDai Sato <satodai@dog.intcul.tohoku.ac.jp>2001-11-22 17:52:28 +0000
commita5067a1853b490e9c551ac2ff7c4cb58a9bb3f48 (patch)
tree42ca751a0b79dd050082b1e87c7d8957c161c6ff /search.c
parent[w3m-dev 02509] (diff)
downloadw3m-inu-0-2-2.tar.gz
w3m-inu-0-2-2.zip
w3m-0.2.2-inu-1.1 sourceinu-0-2-2-rel-1-1inu-0-2-2
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