1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-29 18:19:22 +08:00
This commit is contained in:
shaoying 2018-08-02 21:45:52 +08:00
parent 8059414c74
commit 9f78a9903c
3 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,8 @@
~shell1
login root root
source etc/local.shy source etc/local.shy
~file1 ~file1
history load etc/history.txt history load etc/history.txt
~shell1 ~shell1
alias import nfs alias import nfs
alias send pwd

View File

@ -2453,7 +2453,7 @@ var Index = &Context{Name: "ctx", Help: "模块中心",
list := []string{} list := []string{}
j := 0 j := 0
for i := 1; i < len(arg); i++ { 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]) list = append(list, args[j])
j++ j++
continue continue

View File

@ -493,6 +493,7 @@ func (nfs *NFS) Read(p []byte) (n int, err error) { // {{{
} }
case termbox.KeyCtrlI: case termbox.KeyCtrlI:
break
if len(tab) == 0 { if len(tab) == 0 {
tabi = 0 tabi = 0
prefix := string(buf) prefix := string(buf)