diff options
author | Joe <rbo@gmx.us> | 2024-04-10 20:20:20 +0200 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-04-10 20:20:20 +0200 |
commit | 2b184f39542f0ae754a22c36da1d83fe2e3e1a29 (patch) | |
tree | abf8fbac9146e3ca13959647b5ab99a6acfddc46 /src/i_ui.go | |
parent | cool (diff) | |
download | hardflip-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.go | 4 |
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, |