Automatically load dircounts after enabling it (#2049)

This commit is contained in:
Joe Lim authored and GitHub committed 2025-07-19 14:35:13 +10:00
1 parent f2d5d08952
commit c31b92491f
2 files changed
+13 -1

No files matched your search

+4
View File
@@ -68,6 +68,10 @@ func (e *setExpr) eval(app *app, args []string) {
err = applyBoolOpt(&gOpts.dircache, e)
case "dircounts", "nodircounts", "dircounts!":
err = applyBoolOpt(&gOpts.dircounts, e)
if err == nil {
app.nav.renew()
app.ui.loadFile(app, false)
}
case "dirfirst", "nodirfirst", "dirfirst!":
err = applyBoolOpt(&gOpts.dirfirst, e)
if err == nil {