1
0
forked from x/ContextOS

fix nfs.Read Ctrl+H

This commit is contained in:
shaoying 2019-01-10 20:18:03 +08:00
parent 00c61c544c
commit 4651024817

View File

@ -448,6 +448,9 @@ func (nfs *NFS) Read(p []byte) (n int, err error) {
case termbox.KeyCtrlL:
nfs.Term(m, "clear", "all").Term(m, "flush")
nfs.prompt(what)
if len(what) < index {
index = 0
}
nfs.shadow(what[index:], help, color)
case termbox.KeyCtrlJ, termbox.KeyEnter: