From 46a3bbc8efb6e261946d0144b7e4a93a148d5d8c Mon Sep 17 00:00:00 2001 From: shaoying Date: Mon, 14 May 2018 18:45:37 +0800 Subject: [PATCH] tce fix bug --- src/contexts/ctx.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/contexts/ctx.go b/src/contexts/ctx.go index a89ac0ed..cf723fd7 100644 --- a/src/contexts/ctx.go +++ b/src/contexts/ctx.go @@ -2045,12 +2045,11 @@ var Index = &Context{Name: "ctx", Help: "模块中心", return case "list": for i := 0; i < m.Capi("part"); i++ { - if c, ok := m.target.Commands[fmt.Sprintf("%d", i)]; ok { m.Echo("%d: %s\n", i, c.Name) - return } } + return } switch len(arg) {