aboutsummaryrefslogtreecommitdiffstats
path: root/i_host.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--i_host.go25
1 files changed, 1 insertions, 24 deletions
diff --git a/i_host.go b/i_host.go
index 46f7d56..bcb39e1 100644
--- a/i_host.go
+++ b/i_host.go
@@ -99,7 +99,7 @@ func i_host_panel_host(ui HardUI, icons bool,
style, text)
}
-func i_host_panel(ui HardUI, icons bool, litems *ItemsList, data *HardData) {
+func i_draw_host_panel(ui HardUI, icons bool, litems *ItemsList, data *HardData) {
i_draw_box(ui.s, 0, 0,
ui.dim[W] / 3, ui.dim[H] - 2,
" Hosts ", false)
@@ -129,26 +129,3 @@ func i_host_panel(ui HardUI, icons bool, litems *ItemsList, data *HardData) {
}
}
}
-
-func i_scrollhint(ui HardUI, litems *ItemsList) {
- if litems.head == nil {
- return
- }
- h := ui.dim[H] - 4
- max := litems.last.ID
- if max <= h {
- return
- }
- draw_id := litems.draw.ID
- if draw_id > 1 {
- ui.s.SetContent(0, 1,
- '▲',
- nil, ui.def_style)
- }
- if max - draw_id > h {
- ui.s.SetContent(0, ui.dim[H] - 3,
- '▼',
- nil, ui.def_style)
- return
- }
-}