This commit is contained in:
Gokcehan 2018-01-11 19:40:54 +03:00
parent 6774ff0b81
commit 158b1b401b

8
nav.go
View File

@ -252,14 +252,6 @@ func (nav *nav) getDirs(wd string) {
for curr, base := wd, ""; !isRoot(base); curr, base = filepath.Dir(curr), filepath.Base(curr) {
dir := nav.load(curr)
for i, f := range dir.fi {
if f.Name() == base {
dir.ind = i
edge := min(gOpts.scrolloff, len(dir.fi)-dir.ind-1)
dir.pos = min(i, nav.height-edge-1)
break
}
}
dirs = append(dirs, dir)
}