From: Jaakko Heinonen Date: Mon, 19 Apr 2004 17:08:00 +0000 (+0000) Subject: minor ui_find updates X-Git-Tag: upstream/0.6.1~2^2~211 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=fe6b3612a0ddda13d974f7d71e3ab240466ddab5;p=pkg%2Fabook.git minor ui_find updates --- diff --git a/ui.c b/ui.c index aa49d48..d99397d 100644 --- 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;