refresh();
}
-
/*
- * help - need to rewrite
+ * help
*/
-
#include "help.h"
void
delwin(helpw);
}
-
/*
* end of help
*/
ui_find(int next)
{
int item;
- static char findstr[81];
+ static char findstr[MAX_FIELD_LEN];
int search_fields[] = {NAME, EMAIL, NICK, -1};
if(next) {
} else {
clear_statusline();
statusline_addstr("/");
- statusline_getnstr(findstr, 67, 0);
+ statusline_getnstr(findstr, MAX_FIELD_LEN - 1, 0);
clear_statusline();
}
- if( (item = find_item(findstr, next ? curitem+1 : curitem,
+ if( (item = find_item(findstr, curitem + !!next,
search_fields )) >= 0 ) {
curitem = item;
refresh_list();