From 5aeb4f9b09a6e39ca0f8ab1e7fce55e8abb948ad Mon Sep 17 00:00:00 2001
From: Max Klinger <git@max-klinger.org>
Date: Tue, 29 Apr 2014 09:02:00 +0200
Subject: [PATCH] change wording when deleting empty directory

---
 src/delete.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/delete.c b/src/delete.c
index a8e15ae..55afd2f 100644
--- a/src/delete.c
+++ b/src/delete.c
@@ -46,7 +46,7 @@ static void delete_draw_confirm() {
 
   ncprint(1, 2, "Are you sure you want to delete \"%s\"%c",
     cropstr(root->name, 21), root->flags & FF_DIR ? ' ' : '?');
-  if(root->flags & FF_DIR)
+  if(root->flags & FF_DIR && root->sub != NULL)
     ncprint(2, 18, "and all of its contents?");
 
   if(seloption == 0)
-- 
GitLab