summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Klinger <git@max-klinger.org>2014-04-29 09:02:00 +0200
committerYorhel <git@yorhel.nl>2015-09-20 07:54:43 +0200
commit5aeb4f9b09a6e39ca0f8ab1e7fce55e8abb948ad (patch)
tree61f0980d434513df9a3b12f2f0e432c4c228731f
parent078369b8c5500d614a8e640a2cb5a54ef3c585ef (diff)
change wording when deleting empty directory
-rw-r--r--src/delete.c2
1 files changed, 1 insertions, 1 deletions
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)