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
commit5947703f0da84e80f3ccf541743d287fae8f051c (patch)
tree4752212a167643bf67398642ecdb1b344266936e /i_events.go
parentfixed segv (diff)
downloadhardflip-5947703f0da84e80f3ccf541743d287fae8f051c.tar.gz
hardflip-5947703f0da84e80f3ccf541743d287fae8f051c.tar.bz2
hardflip-5947703f0da84e80f3ccf541743d287fae8f051c.tar.xz
hardflip-5947703f0da84e80f3ccf541743d287fae8f051c.tar.zst
hardflip-5947703f0da84e80f3ccf541743d287fae8f051c.zip
that's good
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) {