1 parent
8388b4f385
commit
4c6241ca42
1 file changed
+3
@@ -768,6 +768,9 @@ func (nav *nav) cd(wd string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (nav *nav) sel(path string) error {
|
func (nav *nav) sel(path string) error {
|
||||||
|
path = strings.Replace(path, "~", gUser.HomeDir, -1)
|
||||||
|
path = filepath.Clean(path)
|
||||||
|
|
||||||
lstat, err := os.Stat(path)
|
lstat, err := os.Stat(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("select: %s", err)
|
return fmt.Errorf("select: %s", err)
|
||||||
|
|||||||
Reference in new issue
Block a user