nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit a62bcd3f874e421a075653aea88259116752ca31
parent ed55fbd9d551215e38d85f729456367826f008dc
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Tue,  6 Apr 2021 00:19:32 +0530

Pass mode directly for indicator

Diffstat:
Msrc/nnn.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -3598,9 +3598,9 @@ static void print_time(const time_t *timep) t->tm_year + 1900, t->tm_mon + 1, t->tm_mday, t->tm_hour, t->tm_min); } -static char get_detail_ind(const struct entry *ent) +static char get_detail_ind(const mode_t mode) { - switch (ent->mode & S_IFMT) { + switch (mode & S_IFMT) { case S_IFDIR: // fallthrough case S_IFREG: return ' '; case S_IFLNK: return '@'; @@ -3737,7 +3737,7 @@ static void print_details(const struct entry *ent) addstr(size); } else { addstr(" "); - addch(get_detail_ind(ent)); + addch(get_detail_ind(ent->mode)); } }