init_windows()
{
top = newwin(LIST_TOP - 1, COLS, 0, 0);
init_windows()
{
top = newwin(LIST_TOP - 1, COLS, 0, 0);
bottom = newwin(LINES - LIST_BOTTOM, COLS, LIST_BOTTOM, 0);
}
bottom = newwin(LINES - LIST_BOTTOM, COLS, LIST_BOTTOM, 0);
}
#ifdef DEBUG
fprintf(stderr, "init_abook():\n");
fprintf(stderr, " COLS = %d, LINES = %d\n", COLS, LINES);
#ifdef DEBUG
fprintf(stderr, "init_abook():\n");
fprintf(stderr, " COLS = %d, LINES = %d\n", COLS, LINES);
mvwhline(top, 1, 0, UI_HLINE_CHAR, COLS);
mvwhline(top, 1, 0, UI_HLINE_CHAR, COLS);
mvwprintw(top, 0, 0, "%s | %s", PACKAGE " " VERSION, str);
refresh();
wrefresh(top);
}
mvwprintw(top, 0, 0, "%s | %s", PACKAGE " " VERSION, str);
refresh();
wrefresh(top);
}
buf = wenter_string(bottom, n,
(use_filesel ? ESTR_USE_FILESEL:0) | ESTR_DONT_WRAP);
if(n < 0)
return buf;
buf = wenter_string(bottom, n,
(use_filesel ? ESTR_USE_FILESEL:0) | ESTR_DONT_WRAP);
if(n < 0)
return buf;
statusline_addstr(prompt);
buf = statusline_getnstr(NULL, -1, flags);
statusline_addstr(prompt);
buf = statusline_getnstr(NULL, -1, flags);
helpw = newwin(LINES - 5, COLS - 6, 2, 3);
erase();
headerline("help");
helpw = newwin(LINES - 5, COLS - 6, 2, 3);
erase();
headerline("help");
- static char findstr[81];
+ static char findstr[MAX_FIELD_LEN];
+ int search_fields[] = {NAME, EMAIL, NICK, -1};
- if( (item = find_item(findstr, next ? curitem+1 : curitem)) >= 0 ) {
+ if( (item = find_item(findstr, curitem + !!next,
+ search_fields )) >= 0 ) {