aboutsummaryrefslogtreecommitdiffstats
path: root/i_ui.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-09 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-09 20:20:20 +0100
commit1b348ade03ecf708c13a37f353ac1533f7c0d747 (patch)
tree6b824ba4eb790cba11e8c45813b696a0cfca8ccd /i_ui.go
parentfolding visually (diff)
downloadhardflip-1b348ade03ecf708c13a37f353ac1533f7c0d747.tar.gz
hardflip-1b348ade03ecf708c13a37f353ac1533f7c0d747.tar.bz2
hardflip-1b348ade03ecf708c13a37f353ac1533f7c0d747.tar.xz
hardflip-1b348ade03ecf708c13a37f353ac1533f7c0d747.tar.zst
hardflip-1b348ade03ecf708c13a37f353ac1533f7c0d747.zip
folding functionally
Diffstat (limited to 'i_ui.go')
-rw-r--r--i_ui.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/i_ui.go b/i_ui.go
index b4ffc20..b36fde3 100644
--- a/i_ui.go
+++ b/i_ui.go
@@ -283,9 +283,10 @@ func i_host_panel(ui HardUI, icons bool, litems *ItemsList) {
line := 1
ptr := litems.draw_start
for ptr = ptr; ptr != nil && line < ui.dim[H] - 2; ptr = ptr.next {
- if ptr.is_dir() == false &&
- ptr.Host.folded_parents() == false &&
- ptr.Host != nil {
+ if ptr.folded_parents() == true {
+ continue
+ }
+ if ptr.is_dir() == false && ptr.Host != nil {
i_host_panel_host(ui,
icons,
ptr.Host.Parent.Depth,
@@ -293,7 +294,7 @@ func i_host_panel(ui HardUI, icons bool, litems *ItemsList) {
litems.curr.Host,
line)
line++
- } else if ptr.Dirs != nil && ptr.Dirs.folded_parents() == false {
+ } else if ptr.Dirs != nil {
i_host_panel_dirs(ui, icons,
ptr.Dirs,
litems.curr.Dirs,