aboutsummaryrefslogtreecommitdiffstats
path: root/nnn.c
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-04-02 02:50:56 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-04-02 02:50:56 +0530
commit0aa1d4342874fbee08bc434f782c343195bffe7e (patch)
tree41f7bc00010f1bceb68071424ad1809d7b5479aa /nnn.c
parent951d32361699ede7d42f06f72cd3b3813a0be71c (diff)
downloadnnn-0aa1d4342874fbee08bc434f782c343195bffe7e.tar.gz
Show message when trying to go above /
Diffstat (limited to 'nnn.c')
-rw-r--r--nnn.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/nnn.c b/nnn.c
index 802030e..bc2583c 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();