clean path before changing directory
This commit is contained in:
1 parent
7fe72c188f
commit
d66eb7349d
2 files changed
+2
No files matched your search
@@ -476,6 +476,7 @@ func (ui *UI) draw(nav *Nav) {
|
||||
dir := nav.currDir()
|
||||
|
||||
path := strings.Replace(dir.path, envHome, "~", -1)
|
||||
path = filepath.Clean(path)
|
||||
|
||||
ui.pwdwin.printf(0, 0, termbox.AttrBold|termbox.ColorGreen, bg, "%s@%s", envUser, envHost)
|
||||
ui.pwdwin.printf(len(envUser)+len(envHost)+1, 0, fg, bg, ":")
|
||||
|
||||
Reference in new issue
Block a user