find hidden parents when 'hidden' is changed

This commit is contained in:
Gokcehan 2018-06-16 16:27:39 +03:00
parent 8070cd82b7
commit 078dc47e34

View File

@ -52,14 +52,17 @@ func (e *setExpr) eval(app *app, args []string) {
case "hidden": case "hidden":
gOpts.sortType.option |= hiddenSort gOpts.sortType.option |= hiddenSort
app.nav.sort() app.nav.sort()
app.nav.position()
app.ui.sort() app.ui.sort()
case "nohidden": case "nohidden":
gOpts.sortType.option &= ^hiddenSort gOpts.sortType.option &= ^hiddenSort
app.nav.sort() app.nav.sort()
app.nav.position()
app.ui.sort() app.ui.sort()
case "hidden!": case "hidden!":
gOpts.sortType.option ^= hiddenSort gOpts.sortType.option ^= hiddenSort
app.nav.sort() app.nav.sort()
app.nav.position()
app.ui.sort() app.ui.sort()
case "ignorecase": case "ignorecase":
gOpts.ignorecase = true gOpts.ignorecase = true