reload directories when 'hiddenfiles' is changed

This commit is contained in:
Gokcehan 2020-06-11 03:16:24 +03:00
parent 25e487cc51
commit 99cee56d6e

View File

@ -305,7 +305,11 @@ func (e *setExpr) eval(app *app, args []string) {
return
}
}
gOpts.hiddenfiles = strings.Split(e.val, ":")
gOpts.hiddenfiles = toks
app.nav.sort()
app.nav.position()
app.ui.sort()
app.ui.loadFile(app.nav)
default:
app.ui.echoerrf("unknown option: %s", e.opt)
return