refactor: simplify path declaration in position (#2457)

This commit is contained in:
CatsDeservePets authored and GitHub committed 2026-03-23 02:31:49 +01:00
1 parent b879f822af
commit d2f4cadd37
1 file changed
+1 -2
+1 -2
View File
@@ -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)
}