aboutsummaryrefslogtreecommitdiffstats
path: root/src/i_host.go
diff options
context:
space:
mode:
authorjoe <rbo@gmx.us>2025-08-26 18:47:19 +0200
committerjoe <rbo@gmx.us>2025-08-26 18:47:19 +0200
commit323f5bcba9c05beeb52040968a6d2ef8598f99a3 (patch)
tree6623ac8d128d821b8d9042ecb6f26df9c50a6503 /src/i_host.go
parentcleaned more (diff)
downloadhardflip-323f5bcba9c05beeb52040968a6d2ef8598f99a3.tar.gz
hardflip-323f5bcba9c05beeb52040968a6d2ef8598f99a3.tar.bz2
hardflip-323f5bcba9c05beeb52040968a6d2ef8598f99a3.tar.xz
hardflip-323f5bcba9c05beeb52040968a6d2ef8598f99a3.tar.zst
hardflip-323f5bcba9c05beeb52040968a6d2ef8598f99a3.zip
finally fixed my shit
Diffstat (limited to '')
-rw-r--r--src/i_host.go7
1 files changed, 3 insertions, 4 deletions
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)