refactor: simplify path declaration in position (#2457)
This commit is contained in:
1 parent
b879f822af
commit
d2f4cadd37
1 file changed
+1
-2
@@ -688,11 +688,10 @@ func (nav *nav) resize(ui *ui) {
|
||||
}
|
||||
|
||||
func (nav *nav) position() {
|
||||
var path string
|
||||
var base string
|
||||
|
||||
for i := len(nav.dirPaths) - 1; i >= 0; i-- {
|
||||
path = nav.dirPaths[i]
|
||||
path := nav.dirPaths[i]
|
||||
if i < len(nav.dirPaths)-1 {
|
||||
nav.getDir(path).sel(base, nav.height)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user