Add clearmaps command (#1286)
This commit is contained in:
1 parent
c874a2c56f
commit
2c13e0d7d6
5 files changed
+27
No files matched your search
@@ -1614,6 +1614,10 @@ func (e *callExpr) eval(app *app, args []string) {
|
||||
app.ui.loadFileInfo(app.nav)
|
||||
app.nav.sort()
|
||||
app.ui.sort()
|
||||
case "clearmaps":
|
||||
// leave `:` and cmaps bound so the user can still exit using `:quit`
|
||||
gOpts.keys = make(map[string]expr)
|
||||
gOpts.keys[":"] = &callExpr{"read", nil, 1}
|
||||
case "copy":
|
||||
if !app.nav.init {
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user