Revert "do not cd when select on directory"
This reverts commit f071a3ae70
.
Related #167
This commit is contained in:
parent
80ab2e4fc4
commit
8388b4f385
6
nav.go
6
nav.go
@ -773,6 +773,12 @@ 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]
|
||||||
|
Loading…
Reference in New Issue
Block a user