Run goimports

This commit is contained in:
c-bata 2017-07-18 05:32:14 +09:00
parent 050e78b823
commit f3212afbf7
6 changed files with 3 additions and 8 deletions

View File

@ -1,6 +1,6 @@
package main
import "github.com/c-bata/go-prompt-toolkit/prompt"
import "github.com/c-bata/go-prompt-toolkit"
func main() {
l := 20
@ -11,7 +11,6 @@ func main() {
out.WriteStr("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
}
out.CursorGoTo(5, 10)
out.EraseLine()

View File

@ -4,7 +4,7 @@ import (
"fmt"
"syscall"
"github.com/c-bata/go-prompt-toolkit/prompt"
"github.com/c-bata/go-prompt-toolkit"
"github.com/pkg/term/termios"
)

View File

@ -1,6 +1,5 @@
package main
import (
"fmt"
"os"

View File

@ -64,5 +64,3 @@ func FilterContains(completions []string, sub string, ignoreCase bool) []string
}
return ret
}

View File

@ -16,7 +16,6 @@ func defaultHandler(ac *ASCIICode, buffer *Buffer) {
break
case ControlT:
break
return
case Up:
break
case Down:

View File

@ -89,7 +89,7 @@ func (r *Render) renderCompletion(buf *Buffer, words []string, max uint16, selec
d := (len(r.prefix) + len(buf.Document().TextBeforeCursor())) % int(r.col)
if d == 0 { // the cursor is on right end.
r.out.CursorBackward(width)
} else if d + width > int(r.col) {
} else if d+width > int(r.col) {
r.out.CursorBackward(d + width - int(r.col))
}