diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/tcell/window.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/tcell/window.go b/ui/tcell/window.go index 86f9ce4..b6378be 100644 --- a/ui/tcell/window.go +++ b/ui/tcell/window.go @@ -2,6 +2,7 @@ package uitcell import ( "fmt" + "path/filepath" tcell "github.com/gdamore/tcell/v2" "github.com/prodhe/poe/editor" @@ -41,8 +42,12 @@ func NewWindow(id int64) *Window { }, } + tagname := win.TagName() + if win.body.text.IsDir() { + tagname += string(filepath.Separator) + } fmt.Fprintf(win.tagline, "%s Del Get ", - win.TagName(), + tagname, ) return win |