aboutsummaryrefslogtreecommitdiff
path: root/ui/tcell/window.go
diff options
context:
space:
mode:
authorPetter Rodhelind <petter.rodhelind@gmail.com>2021-03-04 11:13:49 +0100
committerPetter Rodhelind <petter.rodhelind@gmail.com>2021-03-04 11:13:49 +0100
commitdd1862efd37d36b29931dfda47bfa8ec8418e2e0 (patch)
treeb490d335c159304f704959029c8381d7d1219f45 /ui/tcell/window.go
parent666d2301e7d09531068fe9898f7779c9affebb70 (diff)
downloadpoe-dd1862efd37d36b29931dfda47bfa8ec8418e2e0.tar.gz
poe-dd1862efd37d36b29931dfda47bfa8ec8418e2e0.tar.bz2
poe-dd1862efd37d36b29931dfda47bfa8ec8418e2e0.zip
Do not add trailing dir separator if in nix root.
Diffstat (limited to 'ui/tcell/window.go')
-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,