From 99cee56d6e8002b6c9a6c65a7b2b5c529d35d0d7 Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Thu, 11 Jun 2020 03:16:24 +0300 Subject: [PATCH] reload directories when 'hiddenfiles' is changed --- eval.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/eval.go b/eval.go index db6adda..caa3534 100644 --- a/eval.go +++ b/eval.go @@ -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