nnn

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

commit 994ee0d790b57c898c788025dbdd9f578d5b89f4
parent 8b8e644cf50492967a5f24d32ad36cfe74b13aa0
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Fri, 17 Aug 2018 05:55:00 +0530

Show dir symbol in symlink file stat

Diffstat:
Mnnn.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/nnn.c b/nnn.c @@ -1760,6 +1760,10 @@ show_stats(char *fpath, char *fname, struct stat *sb) ssize_t len = readlink(fpath, g_buf, MAX_CMD_LEN); if (len != -1) { + struct stat tgtsb; + if (!stat(fpath, &tgtsb) && S_ISDIR(tgtsb.st_mode)) + g_buf[len++] = '/'; + g_buf[len] = '\0'; /*