aboutsummaryrefslogtreecommitdiffstats
path: root/i_events.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--i_events.go5
1 files 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) {