Clear error messages after a command runs successfully (#2117)
* Draw stat info on demand * Remove loadfileinfo function * Fix clearmsg bug when opening directories * Move visual code
This commit is contained in:
1 parent
8f97bf806a
commit
8150586bc2
3 files changed
+119
-160
No files matched your search
@@ -420,9 +420,6 @@ func (app *app) loop() {
|
||||
if err == nil {
|
||||
if curr.path != oldCurrPath {
|
||||
app.ui.loadFile(app, true)
|
||||
if app.ui.msgIsStat {
|
||||
app.ui.loadFileInfo(app.nav)
|
||||
}
|
||||
}
|
||||
if d.path == curr.path {
|
||||
app.ui.dirPrev = d
|
||||
@@ -469,10 +466,6 @@ func (app *app) loop() {
|
||||
}
|
||||
|
||||
app.ui.loadFile(app, false)
|
||||
if app.ui.msgIsStat {
|
||||
app.ui.loadFileInfo(app.nav)
|
||||
}
|
||||
|
||||
onLoad(app, []string{f.path})
|
||||
app.ui.draw(app.nav)
|
||||
case path := <-app.nav.delChan:
|
||||
|
||||
Reference in new issue
Block a user