aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)