diff options
author | Joe <rbo@gmx.us> | 2024-09-23 15:05:04 +0200 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-09-23 15:05:04 +0200 |
commit | 7980ee0daaa24253436f27cabf72f34ae540dee8 (patch) | |
tree | 7f4a3769ebe7bef9cb53e941d79f869a8bcca69d /src/e_keys.go | |
parent | up (diff) | |
download | hardflip-7980ee0daaa24253436f27cabf72f34ae540dee8.tar.gz hardflip-7980ee0daaa24253436f27cabf72f34ae540dee8.tar.bz2 hardflip-7980ee0daaa24253436f27cabf72f34ae540dee8.tar.xz hardflip-7980ee0daaa24253436f27cabf72f34ae540dee8.tar.zst hardflip-7980ee0daaa24253436f27cabf72f34ae540dee8.zip |
fixed segv
Diffstat (limited to 'src/e_keys.go')
-rw-r--r-- | src/e_keys.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/e_keys.go b/src/e_keys.go index 7ec82cc..e7c71c8 100644 --- a/src/e_keys.go +++ b/src/e_keys.go @@ -180,10 +180,7 @@ func e_normal_events(data *HardData, ui *HardUI, event tcell.EventKey) bool { data.insert = &HostNode{} tmp.Host = data.insert if data.litems.curr == nil { - data.litems.add_back(&tmp) - ui.s.Fini() - // FIX: segv if void - return true + tmp.Host.parent = data.ldirs.head } else if data.litems.curr.is_dir() == true { data.insert.parent = data.litems.curr.Dirs } else { |