fix: apply position to root directory (#2354)

This commit is contained in:
Joe Lim authored and GitHub committed 2026-01-22 13:24:54 +11:00
1 parent c7be3c4434
commit a01195a4d2
1 file changed
+1 -1
+1 -1
View File
@@ -706,7 +706,7 @@ func (nav *nav) position() {
var path string
var base string
for i := len(nav.dirPaths) - 1; i > 0; i-- {
for i := len(nav.dirPaths) - 1; i >= 0; i-- {
path = nav.dirPaths[i]
if i < len(nav.dirPaths)-1 {
nav.getDir(path).sel(base, nav.height)