aboutsummaryrefslogtreecommitdiffstats
path: root/src/i_events.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-04-10 20:20:20 +0200
committerJoe <rbo@gmx.us>2024-04-10 20:20:20 +0200
commit7be044ba3db814e8b815cfda791e8036f1d4a20f (patch)
tree233b350698363e9b5b3c902ac54d514281deb934 /src/i_events.go
parentfixin segv (diff)
downloadhardflip-7be044ba3db814e8b815cfda791e8036f1d4a20f.tar.gz
hardflip-7be044ba3db814e8b815cfda791e8036f1d4a20f.tar.bz2
hardflip-7be044ba3db814e8b815cfda791e8036f1d4a20f.tar.xz
hardflip-7be044ba3db814e8b815cfda791e8036f1d4a20f.tar.zst
hardflip-7be044ba3db814e8b815cfda791e8036f1d4a20f.zip
think we're fine
Diffstat (limited to '')
-rw-r--r--src/i_events.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/i_events.go b/src/i_events.go
index 2178d7d..3b3ade5 100644
--- a/src/i_events.go
+++ b/src/i_events.go
@@ -543,6 +543,8 @@ func i_events(data *HardData) {
ui.buff = ""
if data.litems.curr != nil {
data.insert.parent = data.litems.curr.path_node()
+ } else {
+ data.insert.parent = data.ldirs.head
}
} else {
i_readline(event, data)