cmap now accepts all expressions (#686)

This commit is contained in:
SPFab authored and GitHub committed 2021-08-25 18:28:47 +03:00
1 parent 05a48ea315
commit 0edf0823b7
3 files changed
+11 -15

No files matched your search

+2 -2
View File
@@ -436,10 +436,10 @@ func (e *mapExpr) eval(app *app, args []string) {
}
func (e *cmapExpr) eval(app *app, args []string) {
if e.cmd == "" {
if e.expr == nil {
delete(gOpts.cmdkeys, e.key)
} else {
gOpts.cmdkeys[e.key] = &callExpr{e.cmd, nil, 1}
gOpts.cmdkeys[e.key] = e.expr
}
app.ui.loadFileInfo(app.nav)
}