aboutsummaryrefslogtreecommitdiffstats
path: root/i_events.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-10 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-10 20:20:20 +0100
commitff79f05e9722bea3f39afb2638f918731b6c58cb (patch)
treeb36f972db481a446af14f0f91e7b57bf52477a2a /i_events.go
parentits hard tho (diff)
downloadhardflip-ff79f05e9722bea3f39afb2638f918731b6c58cb.tar.gz
hardflip-ff79f05e9722bea3f39afb2638f918731b6c58cb.tar.bz2
hardflip-ff79f05e9722bea3f39afb2638f918731b6c58cb.tar.xz
hardflip-ff79f05e9722bea3f39afb2638f918731b6c58cb.tar.zst
hardflip-ff79f05e9722bea3f39afb2638f918731b6c58cb.zip
fixed segv
Diffstat (limited to '')
-rw-r--r--i_events.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/i_events.go b/i_events.go
index cda0427..85bded3 100644
--- a/i_events.go
+++ b/i_events.go
@@ -81,7 +81,7 @@ func i_list_follow_cursor(litems *ItemsList, ui *HardUI) {
litems.draw_start.prev != nil {
litems.draw_start = litems.draw_start.prev
}
- // fmt.Println(">>>>> DRAW_START:", litems.draw_start.ID, "<<<<<<< >>>>>>>> VIRT_ID:", virt_id)
+ fmt.Println(">>>>> DRAW_START:", litems.draw_start.ID, "<<<<<<< >>>>>>>> VIRT_ID:", virt_id)
if litems.draw_start.prev != nil &&
litems.draw_start.prev.is_dir() == true &&
litems.draw_start.prev.Dirs.Folded == true {
@@ -93,8 +93,9 @@ func i_list_follow_cursor(litems *ItemsList, ui *HardUI) {
}
func i_reload_data(data *HardData) {
- // FIX: segv if data dir is removed
- fmt.Println("remove me sometime")
+ // TODO: remove this after debug
+ // fmt.Println("remove me sometime")
+ data.data_dir = c_get_data_dir()
data.ldirs = c_load_data_dir(data.data_dir, data.opts)
data.litems = c_load_litems(data.ldirs)
data.ui.sel_max = data.litems.last.ID