mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-28 18:02:02 +08:00
fix nfs.Read Ctrl+H
This commit is contained in:
parent
00c61c544c
commit
4651024817
@ -448,6 +448,9 @@ func (nfs *NFS) Read(p []byte) (n int, err error) {
|
|||||||
case termbox.KeyCtrlL:
|
case termbox.KeyCtrlL:
|
||||||
nfs.Term(m, "clear", "all").Term(m, "flush")
|
nfs.Term(m, "clear", "all").Term(m, "flush")
|
||||||
nfs.prompt(what)
|
nfs.prompt(what)
|
||||||
|
if len(what) < index {
|
||||||
|
index = 0
|
||||||
|
}
|
||||||
nfs.shadow(what[index:], help, color)
|
nfs.shadow(what[index:], help, color)
|
||||||
|
|
||||||
case termbox.KeyCtrlJ, termbox.KeyEnter:
|
case termbox.KeyCtrlJ, termbox.KeyEnter:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user