aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--i_events.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/i_events.go b/i_events.go
index be7f039..1369ffa 100644
--- a/i_events.go
+++ b/i_events.go
@@ -125,14 +125,11 @@ func i_fold_dir(data *HardData, item *ItemsNode) {
}
if ptr == item {
folded_end = nil
+ after = nil
} else {
folded_end = ptr.prev
- }
- if folded_end != nil {
after = folded_end.next
folded_end.next = nil
- } else {
- after = nil
}
tmp := ItemsList{
folded_start,