cmap now accepts all expressions (#686)
This commit is contained in:
1 parent
05a48ea315
commit
0edf0823b7
3 files changed
+11
-15
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user