Update file info after reload command (#1149)

* Update status bar after reload

* Add comment
This commit is contained in:
Joe Lim authored and GitHub committed 2023-03-12 15:30:16 +03:00
1 parent a85ce898a1
commit 9440b1b319
1 file changed
+2 -1
+2 -1
View File
@@ -1312,7 +1312,8 @@ func (e *callExpr) eval(app *app, args []string) {
app.ui.echoerrf("reload: %s", err)
}
app.ui.loadFile(app, true)
app.ui.loadFileInfo(app.nav)
// clear file information, will be loaded asynchronously
app.ui.msg = ""
case "read":
if app.ui.cmdPrefix == ">" {
return