commit 9407399230577243ee81a28af8d2c2744eb14ea7
parent 8d4019f3aaae17fad2348e27c2b8dc0880544ce9
Author: lostd <lostd@2f30.org>
Date:   Thu, 23 Oct 2014 17:39:39 +0300
Don't attempt to go back if on the relative root
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git 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();