From 5947703f0da84e80f3ccf541743d287fae8f051c Mon Sep 17 00:00:00 2001 From: Joe Date: Wed, 10 Jan 2024 20:20:20 +0100 Subject: that's good --- i_events.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/i_events.go b/i_events.go index 177914e..dad3a8b 100644 --- a/i_events.go +++ b/i_events.go @@ -81,8 +81,8 @@ func i_unfold_dir(data *HardData, item *ItemsNode) { if fold == nil { return } - after := item.next // nil - item.next = fold.head // nil + after := item.next + item.next = fold.head if fold.head != nil { fold.head.prev = item } @@ -99,7 +99,6 @@ func i_unfold_dir(data *HardData, item *ItemsNode) { ptr.next.ID = ptr.ID + 1 } item.Dirs.Folded = false - // FIX: segv close last empty folder } func i_fold_dir(data *HardData, item *ItemsNode) { -- cgit v1.2.3