This commit is contained in:
Gokcehan 2019-10-07 22:31:51 +03:00
parent 7b89126e04
commit c43026d1e2

2
ui.go
View File

@ -560,7 +560,7 @@ func (ui *ui) drawPromptLine(nav *nav) {
pwd := nav.currDir().path pwd := nav.currDir().path
nohome := strings.TrimPrefix(pwd, gUser.HomeDir) nohome := strings.TrimPrefix(pwd, gUser.HomeDir)
if len(nohome) < len(pwd) { if len(nohome) < len(pwd) {
pwd = "~/" + nohome pwd = "~/" + nohome
} }
pwd = filepath.Clean(pwd) pwd = filepath.Clean(pwd)