diff options
author | Joe <rbo@gmx.us> | 2024-01-09 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-01-09 20:20:20 +0100 |
commit | 1b348ade03ecf708c13a37f353ac1533f7c0d747 (patch) | |
tree | 6b824ba4eb790cba11e8c45813b696a0cfca8ccd /i_ui.go | |
parent | folding visually (diff) | |
download | hardflip-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.go | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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, |