aboutsummaryrefslogtreecommitdiffstats
path: root/src/i_ui.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-05-13 20:20:20 +0200
committerJoe <rbo@gmx.us>2024-05-13 20:20:20 +0200
commit0ddfbf62fde8b8e0bde9a548b203d67b812ab61e (patch)
tree9843ed6d3420f1295e2b30355cfa743d4fa62202 /src/i_ui.go
parentgg (diff)
downloadhardflip-0ddfbf62fde8b8e0bde9a548b203d67b812ab61e.tar.gz
hardflip-0ddfbf62fde8b8e0bde9a548b203d67b812ab61e.tar.bz2
hardflip-0ddfbf62fde8b8e0bde9a548b203d67b812ab61e.tar.xz
hardflip-0ddfbf62fde8b8e0bde9a548b203d67b812ab61e.tar.zst
hardflip-0ddfbf62fde8b8e0bde9a548b203d67b812ab61e.zip
fix
Diffstat (limited to '')
-rw-r--r--src/i_ui.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/i_ui.go b/src/i_ui.go
index 3e0de04..82e6878 100644
--- a/src/i_ui.go
+++ b/src/i_ui.go
@@ -445,7 +445,11 @@ func i_prompt_dir(ui HardUI, prompt string, home_dir string) {
func i_prompt_insert(ui HardUI, curr *ItemsNode) {
path := "/"
if curr != nil {
- path = curr.path()
+ if curr.is_dir() == false {
+ path = curr.path()
+ } else {
+ path = curr.Dirs.Parent.path()
+ }
}
path = path[1:]
prompt := "Name: "