diff options
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 |