diff --git a/src/contexts/nfs/nfs.go b/src/contexts/nfs/nfs.go index bc3f6917..8aa52ed6 100644 --- a/src/contexts/nfs/nfs.go +++ b/src/contexts/nfs/nfs.go @@ -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: