Make preview renderer suspend early on line wrap

This commit is contained in:
Junegunn Choi committed 2017-01-11 22:13:40 +09:00
1 parent f8082bc53a
commit 9977a3e9fc
5 files changed
+73 -46

No files matched your search

+10 -2
View File
@@ -117,6 +117,14 @@ const (
colWhite
)
type FillReturn int
const (
FillContinue FillReturn = iota
FillNextLine
FillSuspend
)
type ColorPair struct {
fg Color
bg Color
@@ -216,8 +224,8 @@ type Window interface {
MoveAndClear(y int, x int)
Print(text string)
CPrint(color ColorPair, attr Attr, text string)
Fill(text string) bool
CFill(fg Color, bg Color, attr Attr, text string) bool
Fill(text string) FillReturn
CFill(fg Color, bg Color, attr Attr, text string) FillReturn
Erase()
}