From 158b1b401b2839fa8e683cd1918afb5e5bda6865 Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Thu, 11 Jan 2018 19:40:54 +0300 Subject: [PATCH] cleanup --- nav.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/nav.go b/nav.go index 90b3c4d..9f5639e 100644 --- a/nav.go +++ b/nav.go @@ -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) }