From: Arun Prakash Jana Date: Sat, 1 Apr 2017 21:20:56 +0000 (+0530) Subject: Show message when trying to go above / X-Git-Tag: v1.0~39 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=0aa1d4342874fbee08bc434f782c343195bffe7e;p=nnn.git Show message when trying to go above / --- diff --git a/nnn.c b/nnn.c index 802030e9..bc2583cb 100644 --- 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();