]> git.deb.at Git - pkg/abook.git/blobdiff - estr.c
Minor tweaks
[pkg/abook.git] / estr.c
diff --git a/estr.c b/estr.c
index 0e20bb8142d40bdc7a5a92f66b70aa6a87c07b36..1939af0d81ddf4d723e8826f724ccf98471789d7 100644 (file)
--- a/estr.c
+++ b/estr.c
@@ -2,7 +2,7 @@
 /*
  * $Id$
  *  
- * by JH <jheinonen@bigfoot.com>
+ * by JH <jheinonen@users.sourceforge.net>
  *
  * Copyright (C) Jaakko Heinonen
  */
@@ -135,7 +135,7 @@ out:
 
 /*
  * filesel.c
- * by JH <jheinonen@bigfoot.com>
+ * by JH <jheinonen@users.sourceforge.net>
  *
  * Copyright (C) Jaakko Heinonen
  */
@@ -316,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 );
@@ -356,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);
 }