diff options
-rw-r--r-- | c_hardflip.go | 5 | ||||
-rw-r--r-- | c_init.go | 6 | ||||
-rw-r--r-- | i_ui.go | 4 |
3 files changed, 10 insertions, 5 deletions
diff --git a/c_hardflip.go b/c_hardflip.go index 3a677fd..356233e 100644 --- a/c_hardflip.go +++ b/c_hardflip.go @@ -47,6 +47,8 @@ package main +import "fmt" + // the main data structure, holds up everything important type HardData struct { litems *ItemsList @@ -67,6 +69,9 @@ func main() { opts, data_dir, } + for dir := ldirs.head; dir != nil ; dir = dir.next { + fmt.Println("next dir") + } return i_ui(&data) } @@ -80,8 +80,8 @@ func c_recurse_data_dir(dir, root string, opts HardOpts, item_node.Dirs = &dir_node item_node.Host = nil *id++ - ldirs.add_back(&dir_node) - litems.add_back(&item_node) + // ldirs.add_back(&dir_node) + // litems.add_back(&item_node) for _, file := range files { filename := file.Name() if file.IsDir() == true { @@ -98,7 +98,7 @@ func c_recurse_data_dir(dir, root string, opts HardOpts, host_node.Filename = filename host_node.Dir = &dir_node dir_node.lhost.add_back(host_node) - litems.add_back(&item_node) + // litems.add_back(&item_node) } } } @@ -296,8 +296,8 @@ func i_host_panel(ui HardUI, opts HardOpts, ldirs *DirsList) { i_host_panel_dirs(ui, opts, dirs, line) line++ for host := dirs.lhost.head; - dirs.Folded == false && host != nil; - host = host.next { + dirs.Folded == false && host != nil; + host = host.next { i_host_panel_host(ui, opts, dirs, host, line) line++ } |