disable normal commands in cmap

Related #68
This commit is contained in:
Gokcehan committed 2019-02-10 19:28:14 +03:00
1 parent 4a1388a5c7
commit 35930924a7
4 files changed
+3 -29

No files matched your search

-9
View File
@@ -491,15 +491,6 @@ func insert(app *app, arg string) {
}
func (e *callExpr) eval(app *app, args []string) {
if app.ui.cmdPrefix != "" &&
app.ui.cmdPrefix != ">" &&
e.name != "redraw" &&
!strings.HasPrefix(e.name, "cmd-") {
app.ui.menuBuf = nil
app.ui.cmdAccLeft = nil
app.ui.cmdAccRight = nil
app.ui.cmdPrefix = ""
}
switch e.name {
case "up":
app.nav.up(e.count)