about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xnotyet9
1 files changed, 8 insertions, 1 deletions
diff --git a/notyet b/notyet
index 8730da7..76d345f 100755
--- a/notyet
+++ b/notyet
@@ -209,12 +209,19 @@ opt_parser = OptionParser.new { |opts|
 files = [File.expand_path("~/.notyet")]  if files.empty?
 
 t = nil
+if files.size > 1
+  t = Entry.new(-1, "/", "", "", 0, [])
+end
 files.each { |file|
   file = "/dev/stdin"  if file == "-"
   File.open(file) { |f|
     d = parse(f, file)
     if t
-      t.children.concat d.children
+      d.state = "-"
+      d.desc = file
+      d.reindent(2)
+      d.depth = 0
+      t.children << d
     else
       t = d
     end