clean path before changing directory

This commit is contained in:
Gokcehan committed 2016-10-02 00:39:03 +03:00
1 parent 7fe72c188f
commit d66eb7349d
2 files changed
+2

No files matched your search

+1
View File
@@ -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, ":")