aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--noice.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/noice.c b/noice.c
index a44388e..c3d3728 100644
--- a/noice.c
+++ b/noice.c
@@ -658,7 +658,9 @@ nochange:
return;
case SEL_BACK:
/* There is no going back */
- if (strcmp(path, "/") == 0)
+ if (strcmp(path, "/") == 0 ||
+ strcmp(path, ".") == 0 ||
+ strchr(path, '/') == NULL)
goto nochange;
if (canopendir(path) == 0) {
printwarn();