diff options
author | Joe <rbo@gmx.us> | 2024-05-13 20:20:20 +0200 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-05-13 20:20:20 +0200 |
commit | 576a94899099667dbfa13bb776c0aab233107dbd (patch) | |
tree | cbbb7d4abea685983f8cb7303254d91ab0829cb2 /src/i_ui.go | |
parent | fix (diff) | |
download | hardflip-576a94899099667dbfa13bb776c0aab233107dbd.tar.gz hardflip-576a94899099667dbfa13bb776c0aab233107dbd.tar.bz2 hardflip-576a94899099667dbfa13bb776c0aab233107dbd.tar.xz hardflip-576a94899099667dbfa13bb776c0aab233107dbd.tar.zst hardflip-576a94899099667dbfa13bb776c0aab233107dbd.zip |
rfix
Diffstat (limited to 'src/i_ui.go')
-rw-r--r-- | src/i_ui.go | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/i_ui.go b/src/i_ui.go index 82e6878..5002fe1 100644 --- a/src/i_ui.go +++ b/src/i_ui.go @@ -445,10 +445,14 @@ func i_prompt_dir(ui HardUI, prompt string, home_dir string) { func i_prompt_insert(ui HardUI, curr *ItemsNode) { path := "/" if curr != nil { - if curr.is_dir() == false { - path = curr.path() + if ui.mode == RENAME_MODE { + if curr.is_dir() == false { + path = curr.path() + } else { + path = curr.Dirs.Parent.path() + } } else { - path = curr.Dirs.Parent.path() + path = curr.path() } } path = path[1:] |