diff options
| author | 2017-04-02 02:50:56 +0530 | |
|---|---|---|
| committer | 2017-04-02 02:50:56 +0530 | |
| commit | 0aa1d4342874fbee08bc434f782c343195bffe7e (patch) | |
| tree | 41f7bc00010f1bceb68071424ad1809d7b5479aa | |
| parent | 951d32361699ede7d42f06f72cd3b3813a0be71c (diff) | |
| download | nnn-0aa1d4342874fbee08bc434f782c343195bffe7e.tar.gz | |
Show message when trying to go above /
| -rw-r--r-- | nnn.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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(); |