diff options
| author | 2017-06-30 17:50:38 +0530 | |
|---|---|---|
| committer | 2017-06-30 20:33:36 +0530 | |
| commit | f87bb199a0bd29452d5f0c6669156ab58504163b (patch) | |
| tree | 28bb488ea75db089a3d8f3e9d972aaec28d24eb5 | |
| parent | e780360e7de82559ee3512735225d9bf96e60022 (diff) | |
| download | nnn-f87bb199a0bd29452d5f0c6669156ab58504163b.tar.gz | |
Use bold blue for dirs, reset color
| -rw-r--r-- | nnn.c | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -996,7 +996,7 @@ printent(struct entry *ent, int sel) /* 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; } @@ -1107,7 +1107,7 @@ printent_long(struct entry *ent, int sel) /* 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; } @@ -1691,7 +1691,7 @@ redraw(char *path) printw(CWD "%s\n\n", g_buf); if (cfg.showcolor) { - attron(COLOR_PAIR(1)); + attron(COLOR_PAIR(1) | A_BOLD); cfg.dircolor = 1; } @@ -1711,6 +1711,12 @@ redraw(char *path) 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"; |