From ccf3839fd079cd574283dd93915b590085a26084 Mon Sep 17 00:00:00 2001 From: shaoying Date: Mon, 20 Jul 2020 01:46:34 +0800 Subject: [PATCH] opt some --- core/code/inner.go | 2 +- core/code/sh.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/core/code/inner.go b/core/code/inner.go index 9c4471b1..51206eb2 100644 --- a/core/code/inner.go +++ b/core/code/inner.go @@ -30,7 +30,7 @@ func _inner_ext(name string) string { } func _inner_show(m *ice.Message, ext, file, dir string, arg ...string) { - if m.Cmdy(mdb.RENDER, ext, file, dir, arg); m.Result() == "" { + if m.Cmdy(mdb.ENGINE, ext, file, dir, arg); m.Result() == "" { if ls := kit.Simple(m.Confv(INNER, kit.Keys("meta.show", ext))); len(ls) > 0 { m.Cmdy(cli.SYSTEM, ls, path.Join(dir, file)).Set(ice.MSG_APPEND) } diff --git a/core/code/sh.go b/core/code/sh.go index ca1f0aaa..ef71563d 100644 --- a/core/code/sh.go +++ b/core/code/sh.go @@ -33,6 +33,9 @@ func init() { mdb.RENDER: {Hand: func(m *ice.Message, arg ...string) { m.Cmdy(nfs.CAT, path.Join(arg[2], arg[1])) }}, + mdb.ENGINE: {Hand: func(m *ice.Message, arg ...string) { + m.Cmdy(cli.SYSTEM, path.Join(arg[2], arg[1])) + }}, }, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {}}, }, Configs: map[string]*ice.Config{