aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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();