Thumbnail

rani/cscroll.git

Clone URL: https://git.buni.party/rani/cscroll.git

commit ad181cc599646b87cf03eb1b2783493d42e4d349 Author: Raniconduh <clagv.randomgames@gmail.com> Date: Fri Jan 07 12:07:30 2022 +0000 re-allow directories to have different icons diff --git a/src/io.c b/src/io.c index 85172c0..4a30b52 100644 --- a/src/io.c +++ b/src/io.c @@ -1049 +1046 @@ void curses_write_file(struct dir_entry_t * dir_entry, bool highlight) {   case FILE_DIR:   cp = BLUE;   f_ident = '/'; -#if ICONS - icon = ICON_DIR; -#endif   break;   case FILE_FIFO:   cp = YELLOW; @@ -1526 +1497 @@ void curses_write_file(struct dir_entry_t * dir_entry, bool highlight) {   if (!icon && show_icons) {   icon = get_icon(dir_entry->name);   } + if (!icon && dir_entry->file_type == FILE_DIR) icon = ICON_DIR;  #endif     if ((dir_entry->mode & POWNER(M_EXEC)) &&