diff options
author | Joe <rbo@gmx.us> | 2024-01-11 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-01-11 20:20:20 +0100 |
commit | 9b907c908f1afe07e4a5beb702e2ae2177d7f78a (patch) | |
tree | b0d216e5d2b24dcac015527497a2beed29412e18 /i_events.go | |
parent | cool (diff) | |
download | hardflip-9b907c908f1afe07e4a5beb702e2ae2177d7f78a.tar.gz hardflip-9b907c908f1afe07e4a5beb702e2ae2177d7f78a.tar.bz2 hardflip-9b907c908f1afe07e4a5beb702e2ae2177d7f78a.tar.xz hardflip-9b907c908f1afe07e4a5beb702e2ae2177d7f78a.tar.zst hardflip-9b907c908f1afe07e4a5beb702e2ae2177d7f78a.zip |
fix that
Diffstat (limited to 'i_events.go')
-rw-r--r-- | i_events.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/i_events.go b/i_events.go index 1369ffa..34f6daf 100644 --- a/i_events.go +++ b/i_events.go @@ -52,6 +52,7 @@ package main import ( + "fmt" "os" "github.com/gdamore/tcell/v2" @@ -124,10 +125,17 @@ func i_fold_dir(data *HardData, item *ItemsNode) { ptr = ptr.next } if ptr == item { + ptr = ptr.next + // FIX: fix your crap + } + if ptr == item { folded_end = nil after = nil } else { folded_end = ptr.prev + data.ui.s.Fini() + fmt.Println("qwe:", ptr.Dirs) + os.Exit(0) after = folded_end.next folded_end.next = nil } |