cleanup
This commit is contained in:
parent
7b89126e04
commit
c43026d1e2
2
ui.go
2
ui.go
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user