diff options
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 { |