From 2b184f39542f0ae754a22c36da1d83fe2e3e1a29 Mon Sep 17 00:00:00 2001 From: Joe Date: Wed, 10 Apr 2024 20:20:20 +0200 Subject: fixin segv --- src/i_ui.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/i_ui.go') 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, -- cgit v1.2.3