aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2023-12-27 20:20:20 +0100
committerJoe <rbo@gmx.us>2023-12-27 20:20:20 +0100
commit1a98bfb965703d74b31018db928a43e0763f5372 (patch)
tree4714ce9e70ef32282107a69faadeb698689d8cbe
parenti dont know what to do just kill me (diff)
downloadhardflip-1a98bfb965703d74b31018db928a43e0763f5372.tar.gz
hardflip-1a98bfb965703d74b31018db928a43e0763f5372.tar.bz2
hardflip-1a98bfb965703d74b31018db928a43e0763f5372.tar.xz
hardflip-1a98bfb965703d74b31018db928a43e0763f5372.tar.zst
hardflip-1a98bfb965703d74b31018db928a43e0763f5372.zip
notmuch
Diffstat (limited to '')
-rw-r--r--i_ui.go22
1 files changed, 12 insertions, 10 deletions
diff --git a/i_ui.go b/i_ui.go
index 2c94358..5fbff2e 100644
--- a/i_ui.go
+++ b/i_ui.go
@@ -39,7 +39,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* hardflip: src/i_ui.go
- * Wed Dec 27 12:18:01 2023
+ * Wed Dec 27 16:41:52 2023
* Joe
*
* interfacing with the user
@@ -273,20 +273,24 @@ 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,
" Hosts ", false)
+ line := 1
dirs := ldirs.head
- for i := 0; i < ui.list_start && dirs.next != nil; i++ {
- dirs = dirs.next
+ for host := dirs.lhost.head;
+ dirs.Folded == false && host != nil;
+ host = host.next {
+ i_host_panel_host(ui, opts, dirs, host, line)
+ line++
}
- for line := 1; line < ui.dim[H] - 2 && dirs != nil; line = line {
+ dirs = dirs.next
+ for line = line; line < ui.dim[H] - 2 && dirs != nil; dirs = dirs.next {
i_host_panel_dirs(ui, opts, dirs, line)
line++
- host := dirs.lhost.head
- for dirs.Folded == false && host != nil {
+ for host := dirs.lhost.head;
+ dirs.Folded == false && host != nil;
+ host = host.next {
i_host_panel_host(ui, opts, dirs, host, line)
line++
- host = host.next
}
- dirs = dirs.next
}
if ui.sel_max == 0 {
i_draw_text(ui.s,
@@ -513,14 +517,12 @@ func i_ui(data *HardData) {
i_bottom_text(*ui)
i_host_panel(data.ui, data.opts, data.ldirs)
// TODO - info panel
-
// i_info_panel(data.ui, data.lhost)
if data.ldirs.head.lhost.head == nil && data.ldirs.head.next == nil {
i_draw_zhosts_box(*ui)
}
if ui.mode == DELETE_MODE {
// TODO - delete mode
-
// host := data.lhost.sel(ui.sel)
// i_draw_delete_box(*ui, host)
}