X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=list.c;h=9f293e9eb8b88abe2be6499fd712142a670d8edb;hb=ebb3a365ead9d1898c92fccaf53f118faa1b6fbf;hp=d3a53c36f423c50b49e757145e8014a7727cbf8b;hpb=b1b41dce461ab21ae9a2bd26d7a00a381a5f81f8;p=pkg%2Fabook.git diff --git a/list.c b/list.c index d3a53c3..9f293e9 100644 --- a/list.c +++ b/list.c @@ -110,6 +110,11 @@ refresh_list() print_list_line(i, line, i == curitem); } + if(opt_get_bool(BOOL_SHOW_CURSOR)) { + wmove(list, curitem - first_list_item, 0); + /* need to call refresh() to update the cursor positions */ + refresh(); + } wrefresh(list); } @@ -155,17 +160,15 @@ print_list_line(int i, int line, int highlight) void list_headerline() { -#ifdef A_BOLD +#if defined(A_BOLD) && defined(A_NORMAL) attrset(A_BOLD); -#else - /* hmm, maybe something here */ #endif mvaddstr(2, NAMEPOS, abook_fields[NAME].name); mvaddstr(2, EMAILPOS, abook_fields[EMAIL].name); if(extra_column > 0) mvaddnstr(2, EXTRAPOS, abook_fields[extra_column].name, COLS-EXTRAPOS); -#ifdef A_BOLD +#if defined(A_BOLD) && defined(A_NORMAL) attrset(A_NORMAL); #endif }