aboutsummaryrefslogtreecommitdiff
path: root/ui/tcell
diff options
context:
space:
mode:
Diffstat (limited to 'ui/tcell')
-rw-r--r--ui/tcell/window.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/tcell/window.go b/ui/tcell/window.go
index b6378be..ee2de88 100644
--- a/ui/tcell/window.go
+++ b/ui/tcell/window.go
@@ -43,8 +43,9 @@ func NewWindow(id int64) *Window {
}
tagname := win.TagName()
- if win.body.text.IsDir() {
- tagname += string(filepath.Separator)
+ sep := string(filepath.Separator)
+ if win.body.text.IsDir() && tagname != sep {
+ tagname += sep
}
fmt.Fprintf(win.tagline, "%s Del Get ",
tagname,