Nearly forgot: leave out individual files in the text display.
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 2 Nov 2008 11:00:28 +0000 (11:00 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 2 Nov 2008 11:00:28 +0000 (11:00 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/agedu@8253 cda61777-01e9-0310-a592-d414129be87e

agedu.c

diff --git a/agedu.c b/agedu.c
index 07e9415..abcf623 100644 (file)
--- a/agedu.c
+++ b/agedu.c
@@ -179,6 +179,9 @@ static void text_query(const void *mappedfile, const char *querydir,
     s1 = index_query(mappedfile, xi1, t);
     s2 = index_query(mappedfile, xi2, t);
 
+    if (xi2 - xi1 == 1)
+       return;                        /* file, or empty dir => no display */
+
     if (s1 == s2)
        return;                        /* no space taken up => no display */