aboutsummaryrefslogtreecommitdiffstats
path: root/i_events.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2023-12-21 20:20:20 +0100
committerJoe <rbo@gmx.us>2023-12-21 20:20:20 +0100
commit9c07e9366991a960245f3e67c838064ec0d25868 (patch)
treee2c58dd467f07de1eb0e889006ab94dd567e8448 /i_events.go
parentfixed segv (diff)
downloadhardflip-9c07e9366991a960245f3e67c838064ec0d25868.tar.gz
hardflip-9c07e9366991a960245f3e67c838064ec0d25868.tar.bz2
hardflip-9c07e9366991a960245f3e67c838064ec0d25868.tar.xz
hardflip-9c07e9366991a960245f3e67c838064ec0d25868.tar.zst
hardflip-9c07e9366991a960245f3e67c838064ec0d25868.zip
fix
Diffstat (limited to '')
-rw-r--r--i_events.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/i_events.go b/i_events.go
index 1d977e4..44e623e 100644
--- a/i_events.go
+++ b/i_events.go
@@ -53,13 +53,9 @@ import (
)
func i_reload_data(data *HardData) {
- ui := data.ui
data.lhost = c_load_data_dir(data.data_dir)
l := data.lhost
data.ui.sel_max = l.count()
- if ui.sel >= ui.sel_max {
- ui.sel = ui.sel_max - 1
- }
}
func i_delete_host(data *HardData) {