From 0aa1d4342874fbee08bc434f782c343195bffe7e Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sun, 2 Apr 2017 02:50:56 +0530 Subject: [PATCH] Show message when trying to go above / --- nnn.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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();