From c43026d1e20da7222559a03db05d8278e70f1a3a Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Mon, 7 Oct 2019 22:31:51 +0300 Subject: [PATCH] cleanup --- ui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui.go b/ui.go index 7dc753b..87cabcc 100644 --- a/ui.go +++ b/ui.go @@ -560,7 +560,7 @@ func (ui *ui) drawPromptLine(nav *nav) { pwd := nav.currDir().path nohome := strings.TrimPrefix(pwd, gUser.HomeDir) if len(nohome) < len(pwd) { - pwd = "~/" + nohome + pwd = "~/" + nohome } pwd = filepath.Clean(pwd)