mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Fix #893: show symlink target in statusbar
This commit is contained in:
parent
381b251fd0
commit
c825a9e541
|
@ -5683,6 +5683,12 @@ static void statusbar(char *path)
|
||||||
addstr(coolsize(pent->size));
|
addstr(coolsize(pent->size));
|
||||||
addch(' ');
|
addch(' ');
|
||||||
addstr(ptr);
|
addstr(ptr);
|
||||||
|
if (S_ISLNK(pent->mode) && (readlink(pent->name, g_buf, PATH_MAX) > 0))
|
||||||
|
{
|
||||||
|
addstr(" [-> ");
|
||||||
|
addstr(g_buf);
|
||||||
|
addch(']');
|
||||||
|
}
|
||||||
addch('\n');
|
addch('\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue