From dd1862efd37d36b29931dfda47bfa8ec8418e2e0 Mon Sep 17 00:00:00 2001 From: Petter Rodhelind Date: Thu, 4 Mar 2021 11:13:49 +0100 Subject: Do not add trailing dir separator if in nix root. --- ui/tcell/window.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ui/tcell') 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, -- cgit v1.2.3