handle user variables on all platforms

This commit is contained in:
Gokcehan committed 2017-08-06 11:05:46 +03:00
1 parent ae4a29e550
commit cb577a4c3a
7 files changed
+80 -49

No files matched your search

+1 -1
View File
@@ -349,7 +349,7 @@ func (nav *nav) top() {
}
func (nav *nav) cd(wd string) error {
wd = strings.Replace(wd, "~", envHome, -1)
wd = strings.Replace(wd, "~", gUser.HomeDir, -1)
wd = filepath.Clean(wd)
if !filepath.IsAbs(wd) {