From 576a94899099667dbfa13bb776c0aab233107dbd Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 13 May 2024 20:20:20 +0200 Subject: rfix --- src/c_litems.go | 2 +- src/i_ui.go | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/c_litems.go b/src/c_litems.go index 2b92816..153b02c 100644 --- a/src/c_litems.go +++ b/src/c_litems.go @@ -43,7 +43,7 @@ * POSSIBILITY OF SUCH DAMAGE. * * hardflip: src/c_litems.go - * Mon Jan 15 17:21:57 2024 + * Mon May 13 12:10:57 2024 * Joe * * the dir and hosts linked list 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:] -- cgit v1.2.3