diff options
author | Petter Rodhelind <petter.rodhelind@gmail.com> | 2021-03-04 11:13:49 +0100 |
---|---|---|
committer | Petter Rodhelind <petter.rodhelind@gmail.com> | 2021-03-04 11:13:49 +0100 |
commit | dd1862efd37d36b29931dfda47bfa8ec8418e2e0 (patch) | |
tree | b490d335c159304f704959029c8381d7d1219f45 /ui | |
parent | 666d2301e7d09531068fe9898f7779c9affebb70 (diff) | |
download | poe-dd1862efd37d36b29931dfda47bfa8ec8418e2e0.tar.gz poe-dd1862efd37d36b29931dfda47bfa8ec8418e2e0.tar.bz2 poe-dd1862efd37d36b29931dfda47bfa8ec8418e2e0.zip |
Do not add trailing dir separator if in nix root.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/tcell/window.go | 5 |
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, |