aboutsummaryrefslogtreecommitdiffstats
path: root/src/i_ui.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/i_ui.go')
-rw-r--r--src/i_ui.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/i_ui.go b/src/i_ui.go
index ea76488..cbe2f58 100644
--- a/src/i_ui.go
+++ b/src/i_ui.go
@@ -408,7 +408,9 @@ func i_prompt_generic(ui HardUI, prompt string, secret bool, home_dir string) {
func i_prompt_insert(ui HardUI, curr *ItemsNode) {
path := "/"
- path = curr.path()
+ if curr != nil {
+ path = curr.path()
+ }
path = path[1:]
prompt := "Name: "
i_draw_text(ui.s,