do not cd when select on directory

Related #167
This commit is contained in:
Gokcehan 2019-05-17 21:48:19 +03:00
parent f3407b2d61
commit f071a3ae70

6
nav.go
View File

@ -773,12 +773,6 @@ func (nav *nav) sel(path string) error {
return fmt.Errorf("select: %s", err) 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) base := filepath.Base(path)
last := nav.dirs[len(nav.dirs)-1] last := nav.dirs[len(nav.dirs)-1]