diff options
author | Joe <rbo@gmx.us> | 2024-01-10 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-01-10 20:20:20 +0100 |
commit | 833930892f9b2ace553cea3d8b60ecd878dd019a (patch) | |
tree | a7587ecc4199c8ee6828b512155b04346bfc8a00 /i_ui.go | |
parent | time to cleanup a bit (diff) | |
download | hardflip-833930892f9b2ace553cea3d8b60ecd878dd019a.tar.gz hardflip-833930892f9b2ace553cea3d8b60ecd878dd019a.tar.bz2 hardflip-833930892f9b2ace553cea3d8b60ecd878dd019a.tar.xz hardflip-833930892f9b2ace553cea3d8b60ecd878dd019a.tar.zst hardflip-833930892f9b2ace553cea3d8b60ecd878dd019a.zip |
clean after why slow
Diffstat (limited to '')
-rw-r--r-- | i_ui.go | 20 |
1 files changed, 9 insertions, 11 deletions
@@ -231,9 +231,7 @@ func i_host_panel_dirs(ui HardUI, icons bool, } text := "" for i := 0; i < int(dirs.Depth) - 2; i++ { - for i := 0; i < int(dirs.Depth) - 2; i++ { text += " " - } } if icons == true { var fold_var uint8 @@ -260,8 +258,8 @@ func i_host_panel_host(ui HardUI, icons bool, style = style.Reverse(true) } text := "" - for i := 0; i < int(depth) - 2; i++ { - text += " " + for i := 0; i < int(depth + 1) - 2; i++ { + text += " " } if icons == true { text += HOST_ICONS[int(host.Protocol)] @@ -283,7 +281,7 @@ func i_host_panel(ui HardUI, icons bool, litems *ItemsList) { " Hosts ", false) line := 1 ptr := litems.draw_start - for ptr = ptr; ptr != nil && line < ui.dim[H] - 2; ptr = ptr.next { + for ; ptr != nil && line < ui.dim[H] - 2; ptr = ptr.next { // if ptr.folded_parents() == true { // continue // } @@ -295,9 +293,9 @@ func i_host_panel(ui HardUI, icons bool, litems *ItemsList) { litems.curr.Host, line) // FIX: === delete this after fix - i_draw_text(ui.s, - 1, line, ui.dim[W] / 3, line, - ui.def_style, strconv.Itoa(ptr.ID)) + // i_draw_text(ui.s, + // 1, line, ui.dim[W] / 3, line, + // ui.def_style, strconv.Itoa(ptr.ID)) // FIX: === line++ } else if ptr.Dirs != nil { @@ -306,9 +304,9 @@ func i_host_panel(ui HardUI, icons bool, litems *ItemsList) { litems.curr.Dirs, line) // FIX: === delete this after fix - i_draw_text(ui.s, - 1, line, ui.dim[W] / 3, line, - ui.def_style, strconv.Itoa(ptr.ID)) + // i_draw_text(ui.s, + // 1, line, ui.dim[W] / 3, line, + // ui.def_style, strconv.Itoa(ptr.ID)) // FIX: === line++ } |