load file info after init (#994)

* load fileinfo after init

* do not overwrite error message if present
This commit is contained in:
valoq authored and GitHub committed 2022-11-13 17:20:27 +03:00
1 parent 9bb2487b14
commit 459608e096
1 file changed
+3
+3
View File
@@ -414,6 +414,9 @@ func (app *app) loop() {
if err == nil { if err == nil {
if d.path == app.nav.currDir().path { if d.path == app.nav.currDir().path {
app.ui.loadFile(app, true) app.ui.loadFile(app, true)
if app.ui.msg == "" {
app.ui.loadFileInfo(app.nav)
}
} }
if d.path == curr.path { if d.path == curr.path {
app.ui.dirPrev = d app.ui.dirPrev = d