diff options
author | Dai Sato <satodai@dog.intcul.tohoku.ac.jp> | 2001-11-22 17:52:28 +0000 |
---|---|---|
committer | Dai Sato <satodai@dog.intcul.tohoku.ac.jp> | 2001-11-22 17:52:28 +0000 |
commit | a5067a1853b490e9c551ac2ff7c4cb58a9bb3f48 (patch) | |
tree | 42ca751a0b79dd050082b1e87c7d8957c161c6ff /search.c | |
parent | [w3m-dev 02509] (diff) | |
download | w3m-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.c | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -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 |