aboutsummaryrefslogtreecommitdiffstats
path: root/i_ui.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-09 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-09 20:20:20 +0100
commitf631d61419a65fa456f69e9dcf7977a4472b0483 (patch)
tree681169140da5e00ffe1a226eacb9dab8cda12939 /i_ui.go
parentgood (diff)
downloadhardflip-f631d61419a65fa456f69e9dcf7977a4472b0483.tar.gz
hardflip-f631d61419a65fa456f69e9dcf7977a4472b0483.tar.bz2
hardflip-f631d61419a65fa456f69e9dcf7977a4472b0483.tar.xz
hardflip-f631d61419a65fa456f69e9dcf7977a4472b0483.tar.zst
hardflip-f631d61419a65fa456f69e9dcf7977a4472b0483.zip
this fucking bug
Diffstat (limited to '')
-rw-r--r--i_ui.go26
1 files changed, 19 insertions, 7 deletions
diff --git a/i_ui.go b/i_ui.go
index b36fde3..258ab02 100644
--- a/i_ui.go
+++ b/i_ui.go
@@ -58,13 +58,14 @@ import (
)
type HardUI struct {
- s tcell.Screen
- mode uint8
- sel_max int
- def_style tcell.Style
- dir_style tcell.Style
- title_style tcell.Style
- dim [2]int
+ s tcell.Screen
+ mode uint8
+ sel_max int
+ def_style tcell.Style
+ dir_style tcell.Style
+ title_style tcell.Style
+ folded_count int
+ dim [2]int
}
func i_draw_text(s tcell.Screen,
@@ -293,12 +294,22 @@ func i_host_panel(ui HardUI, icons bool, litems *ItemsList) {
ptr.Host,
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))
+ // FIX: ===
line++
} else if ptr.Dirs != nil {
i_host_panel_dirs(ui, icons,
ptr.Dirs,
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))
+ // FIX: ===
line++
}
}
@@ -314,6 +325,7 @@ func i_host_panel(ui HardUI, icons bool, litems *ItemsList) {
ui.def_style,
" 0 hosts ")
}
+ // FIX: bug on draw_start with folded folders
}
func i_info_panel_dirs(ui HardUI, dir *DirsNode) {