check reg and dir while loading

This commit is contained in:
Gokcehan 2020-07-17 00:33:37 +03:00
parent 2f056ad359
commit 0a22e7c5c8

6
nav.go
View File

@ -297,6 +297,8 @@ func (nav *nav) loadDir(path string) *dir {
return d
}
nav.checkDir(d)
return d
}
@ -477,6 +479,8 @@ func (nav *nav) loadReg(path string) *reg {
return r
}
nav.checkReg(r)
return r
}
@ -867,8 +871,6 @@ func (nav *nav) rename() error {
dir.files = append(dir.files, &file{FileInfo: lstat})
dir.sel(lstat.Name(), nav.height)
nav.checkDir(dir)
return nil
}