/* Dirs are always shown on top */
if (cfg.dircolor && !S_ISDIR(ent->mode)) {
- attroff(COLOR_PAIR(1));
+ attroff(COLOR_PAIR(1) | A_BOLD);
cfg.dircolor = 0;
}
/* Dirs are always shown on top */
if (cfg.dircolor && !S_ISDIR(ent->mode)) {
- attroff(COLOR_PAIR(1));
+ attroff(COLOR_PAIR(1) | A_BOLD);
cfg.dircolor = 0;
}
printw(CWD "%s\n\n", g_buf);
if (cfg.showcolor) {
- attron(COLOR_PAIR(1));
+ attron(COLOR_PAIR(1) | A_BOLD);
cfg.dircolor = 1;
}
printptr(&dents[i], i == cur);
}
+ /* Must reset e.g. no files in dir */
+ if (cfg.dircolor) {
+ attroff(COLOR_PAIR(1) | A_BOLD);
+ cfg.dircolor = 0;
+ }
+
if (cfg.showdetail) {
if (ndents) {
static char ind[2] = "\0\0";