Revert "do not cd when select on directory"

This reverts commit f071a3ae70.

Related #167
This commit is contained in:
Gokcehan 2019-05-18 18:20:08 +03:00
parent 80ab2e4fc4
commit 8388b4f385

6
nav.go
View File

@ -773,6 +773,12 @@ func (nav *nav) sel(path string) error {
return fmt.Errorf("select: %s", err)
}
dir := filepath.Dir(path)
if err := nav.cd(dir); err != nil {
return fmt.Errorf("select: %s", err)
}
base := filepath.Base(path)
last := nav.dirs[len(nav.dirs)-1]