aboutsummaryrefslogtreecommitdiffstats
path: root/src/i_ui.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
commit2b184f39542f0ae754a22c36da1d83fe2e3e1a29 (patch)
treeabf8fbac9146e3ca13959647b5ab99a6acfddc46 /src/i_ui.go
parentcool (diff)
downloadhardflip-2b184f39542f0ae754a22c36da1d83fe2e3e1a29.tar.gz
hardflip-2b184f39542f0ae754a22c36da1d83fe2e3e1a29.tar.bz2
hardflip-2b184f39542f0ae754a22c36da1d83fe2e3e1a29.tar.xz
hardflip-2b184f39542f0ae754a22c36da1d83fe2e3e1a29.tar.zst
hardflip-2b184f39542f0ae754a22c36da1d83fe2e3e1a29.zip
fixin segv
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,