nnn

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

commit 0aa1d4342874fbee08bc434f782c343195bffe7e
parent 951d32361699ede7d42f06f72cd3b3813a0be71c
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Sun,  2 Apr 2017 02:50:56 +0530

Show message when trying to go above /

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

diff --git a/nnn.c b/nnn.c @@ -828,8 +828,10 @@ nochange: /* There is no going back */ if (strcmp(path, "/") == 0 || strcmp(path, ".") == 0 || - strchr(path, '/') == NULL) + strchr(path, '/') == NULL) { + printmsg("You are at /"); goto nochange; + } dir = xdirname(path); if (canopendir(dir) == 0) { printwarn();