diff --git a/etc/init.shy b/etc/init.shy index ae030a44..03429699 100644 --- a/etc/init.shy +++ b/etc/init.shy @@ -3,6 +3,5 @@ source etc/local.shy ~file1 history load etc/history.txt -~shell1 alias import nfs alias send send diff --git a/src/contexts/ctx.go b/src/contexts/ctx.go index a2e761df..68ca75d0 100644 --- a/src/contexts/ctx.go +++ b/src/contexts/ctx.go @@ -2454,7 +2454,7 @@ var Index = &Context{Name: "ctx", Help: "模块中心", list := []string{} j := 0 for i := 1; i < len(arg); i++ { - if arg[i] == "_" && j < len(args) { + if arg[i] == "_" && m.Assert(j < len(args)) { list = append(list, args[j]) j++ continue diff --git a/src/contexts/nfs/nfs.go b/src/contexts/nfs/nfs.go index bc4f1cf7..0888d8e2 100644 --- a/src/contexts/nfs/nfs.go +++ b/src/contexts/nfs/nfs.go @@ -493,6 +493,7 @@ func (nfs *NFS) Read(p []byte) (n int, err error) { // {{{ } case termbox.KeyCtrlI: + break if len(tab) == 0 { tabi = 0 prefix := string(buf)