for( line = 0, i = first_list_item ; i <= LAST_LIST_ITEM && i < items;
line++, i++ ) {
- if(i == curitem)
- highlight_line(list, line);
-
- print_list_line(i, line);
+ print_list_line(i, line, i == curitem);
wstandend(list);
}
}
void
-print_list_line(int i, int line)
+print_list_line(int i, int line, int highlight)
{
int extra = extra_column;
char tmp[MAX_EMAILSTR_LEN];
EMAILLEN : COLS - EMAILPOS;
scrollok(list, FALSE);
+ if(highlight)
+ highlight_line(list, line);
if( selected[i] )
mvwaddch(list, line, 0, '*' );
EXTRALEN);
scrollok(list, TRUE);
+ if(highlight_line)
+ wstandend(list);
}
void init_list();
void close_list();
void refresh_list();
-void print_list_line(int i, int line);
+void print_list_line(int i, int line, int highlight);
void list_headerline();
void scroll_up();
void scroll_down();