fix: check directory for changes during select (#2377)
* fix: check directory for changes during `select` * Update `CHANGELOG.md`
This commit is contained in:
1 parent
a32371088b
commit
89a6697d47
2 files changed
+4
-3
No files matched your search
@@ -1544,12 +1544,12 @@ func (e *callExpr) eval(app *app, _ []string) {
|
||||
}
|
||||
|
||||
dir := app.nav.currDir()
|
||||
app.nav.checkDir(dir)
|
||||
if dir.loading {
|
||||
dir.files = append(dir.files, &file{FileInfo: lstat})
|
||||
} else {
|
||||
app.nav.currDir().sel(filepath.Base(path), app.nav.height)
|
||||
app.ui.loadFile(app, true)
|
||||
}
|
||||
dir.sel(filepath.Base(path), app.nav.height)
|
||||
app.ui.loadFile(app, true)
|
||||
case "source":
|
||||
if len(e.args) != 1 {
|
||||
app.ui.echoerr("source: requires an argument")
|
||||
|
||||
Reference in new issue
Block a user