Fix toggling of directory previews (#993)

* Fix toggling of directory previews

* Fix "dirpreviews!"

* Sort tab completion items consistently
This commit is contained in:
maidlover authored and GitHub committed 2022-11-13 17:20:01 +03:00
1 parent 48d1899ec8
commit 9bb2487b14
2 files changed
+7 -1

No files matched your search

+4
View File
@@ -48,6 +48,10 @@ func (e *setExpr) eval(app *app, args []string) {
app.ui.loadFile(app, true)
case "dirpreviews":
gOpts.dirpreviews = true
case "nodirpreviews":
gOpts.dirpreviews = false
case "dirpreviews!":
gOpts.dirpreviews = !gOpts.dirpreviews
case "nodironly":
gOpts.dironly = false
app.nav.sort()