From 323f5bcba9c05beeb52040968a6d2ef8598f99a3 Mon Sep 17 00:00:00 2001 From: joe Date: Tue, 26 Aug 2025 18:47:19 +0200 Subject: finally fixed my shit --- src/i_host.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/i_host.go') diff --git a/src/i_host.go b/src/i_host.go index ef20aab..6c28f51 100644 --- a/src/i_host.go +++ b/src/i_host.go @@ -43,7 +43,7 @@ * POSSIBILITY OF SUCH DAMAGE. * * hardflip: src/i_host.go - * Tue Jan 23 18:11:24 2024 + * Tue, 26 Aug 2025 18:38:20 +0200 * Joe * * interfacing hosts @@ -51,14 +51,14 @@ package main -func i_host_panel_dirs(ui HardUI, icons bool, dir_icon uint8, depth uint16, +func i_host_panel_dirs(ui HardUI, icons bool, dir_icon uint8, dir *DirsNode, curr *DirsNode, line int) { style := ui.style[DIR_STYLE] if dir == curr { style = style.Reverse(true) } text := " " - for i := 0; i < int(depth) - 2; i++ { + for i := 0; i < int(dir.Depth) - 2; i++ { text += " " } if icons == true { @@ -131,7 +131,6 @@ func i_draw_host_panel(ui HardUI, icons bool, dir_icon = 1 } i_host_panel_dirs(ui, icons, dir_icon, - ptr.Dirs.Depth, ptr.Dirs, litems.curr.Dirs, line) -- cgit v1.2.3