nnn

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

commit c825a9e5413b2da758fc868d81e25bf62af35cc3
parent 381b251fd045832fb75443f3f57efe1386db84a9
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Thu, 18 Mar 2021 23:45:32 +0530

Fix #893: show symlink target in statusbar

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

diff --git a/src/nnn.c b/src/nnn.c @@ -5683,6 +5683,12 @@ static void statusbar(char *path) addstr(coolsize(pent->size)); addch(' '); addstr(ptr); + if (S_ISLNK(pent->mode) && (readlink(pent->name, g_buf, PATH_MAX) > 0)) + { + addstr(" [-> "); + addstr(g_buf); + addch(']'); + } addch('\n'); }