From ff79f05e9722bea3f39afb2638f918731b6c58cb Mon Sep 17 00:00:00 2001 From: Joe Date: Wed, 10 Jan 2024 20:20:20 +0100 Subject: fixed segv --- i_events.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'i_events.go') 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 -- cgit v1.2.3