]> git.deb.at Git - pkg/abook.git/commitdiff
minor ui_find updates
authorJaakko Heinonen <jheinonen@users.sourceforge.net>
Mon, 19 Apr 2004 17:08:00 +0000 (17:08 +0000)
committerJaakko Heinonen <jheinonen@users.sourceforge.net>
Mon, 19 Apr 2004 17:08:00 +0000 (17:08 +0000)
ui.c

diff --git a/ui.c b/ui.c
index aa49d48d5e23b6f92d002a91dc7ee267315dd09e..d99397d4085a33747bc8ccd39e3a1f82c921a786 100644 (file)
--- a/ui.c
+++ b/ui.c
@@ -500,16 +500,14 @@ ui_find(int next)
                        return;
        } else {
                char *s;
-               clear_statusline();
                s = ui_readline("/", findstr, MAX_FIELD_LEN - 1, 0);
                strncpy(findstr, s, MAX_FIELD_LEN);
                refresh_screen();
        }
 
-       if( (item = find_item(findstr, curitem + !!next, search_fields)) < 0)
-               if((item = find_item(findstr, 0, search_fields)) >= 0)
-                       statusline_addstr(
-                               "Search hit bottom, continuing at top");
+       if( (item = find_item(findstr, curitem + !!next, search_fields)) < 0 &&
+                       (item = find_item(findstr, 0, search_fields)) >= 0)
+               statusline_addstr("Search hit bottom, continuing at top");
 
        if(item >= 0) {
                curitem = item;