From 0fcae013d37048406ebab70e9c9b6cfd124dcf93 Mon Sep 17 00:00:00 2001 From: Joe Date: Wed, 27 Dec 2023 20:20:20 +0100 Subject: def --- i_ui.go | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'i_ui.go') diff --git a/i_ui.go b/i_ui.go index a9897db..512109a 100644 --- a/i_ui.go +++ b/i_ui.go @@ -209,6 +209,12 @@ func i_draw_delete_box(ui HardUI, host *HostNode) { // ui.def_style, "o") } +func i_host_panel_dirs() { +} + +func i_host_panel_host() { +} + func i_host_panel(ui HardUI, opts HardOpts, ldirs *DirsList) { i_draw_box(ui.s, 0, 0, ui.dim[W] / 3, ui.dim[H] - 2, @@ -253,11 +259,7 @@ func i_host_panel(ui HardUI, opts HardOpts, ldirs *DirsList) { } text := "" for i := 0; i < int(dirs.Depth) - 2; i++ { - if host.next == nil { - text += " " - } else { - text += " " - } + text += " " } if opts.Icon == true { text += HOST_ICONS[int(host.Protocol)] @@ -299,7 +301,8 @@ func i_info_panel(ui HardUI, lhost *HostList) { ui.dim[W] - 1, ui.dim[H] - 2, " Infos ", false) ui.s.SetContent(ui.dim[W] / 3, 0, tcell.RuneTTee, nil, ui.def_style) - ui.s.SetContent(ui.dim[W] / 3, ui.dim[H] - 2, tcell.RuneBTee, nil, ui.def_style) + ui.s.SetContent(ui.dim[W] / 3, ui.dim[H] - 2, + tcell.RuneBTee, nil, ui.def_style) if lhost.head == nil { return } -- cgit v1.2.3