X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=estr.c;h=1939af0d81ddf4d723e8826f724ccf98471789d7;hb=6e7d84045e274f26479ade3604b381c381e477dc;hp=9f8d7f074c6259b12410b0d96e921e563f309aa9;hpb=0d3c17d9ab127e5596c8fb97d65122b3b90f6b11;p=pkg%2Fabook.git diff --git a/estr.c b/estr.c index 9f8d7f0..1939af0 100644 --- a/estr.c +++ b/estr.c @@ -1,12 +1,10 @@ /* - * - * estr.c + * $Id$ * - * by JH + * by JH * * Copyright (C) Jaakko Heinonen - * */ @@ -137,7 +135,7 @@ out: /* * filesel.c - * by JH + * by JH * * Copyright (C) Jaakko Heinonen */ @@ -318,7 +316,7 @@ filesel_sort_list() qsort((void *)lst, fdp, sizeof(struct filesel_list_item), filenamecmp ); - qsort((void *)lst + fdp * sizeof(struct filesel_list_item), + qsort((void *)(&lst[fdp]), FILESEL_LAST_ITEM - fdp + 1, sizeof(struct filesel_list_item), filenamecmp ); @@ -358,8 +356,12 @@ filesel_highlight_line(WINDOW *win, int line) static void filesel_print_list_line(int i, int line) { - if( lst[i].type == FLSL_TYPE_DIR ) + if( lst[i].type == FLSL_TYPE_DIR ) { + mvwaddch(filesel_list, line, 3, 'd'); +#ifdef A_BOLD wattron(filesel_list, A_BOLD); +#endif + } mvwaddnstr(filesel_list, line, 5, lst[i].filename, COLS - 5); }