Fix --preview-window noborder with non-default background color

This commit is contained in:
Junegunn Choi committed 2019-11-15 18:27:08 +09:00
1 parent d630484eeb
commit 2886f06977
2 files changed
+16 -3

No files matched your search

+13
View File
@@ -221,6 +221,8 @@ type BorderStyle struct {
bottomRight rune
}
type BorderCharacter int
func MakeBorderStyle(shape BorderShape, unicode bool) BorderStyle {
if unicode {
return BorderStyle{
@@ -244,6 +246,17 @@ func MakeBorderStyle(shape BorderShape, unicode bool) BorderStyle {
}
}
func MakeTransparentBorder() BorderStyle {
return BorderStyle{
shape: BorderAround,
horizontal: ' ',
vertical: ' ',
topLeft: ' ',
topRight: ' ',
bottomLeft: ' ',
bottomRight: ' '}
}
type Renderer interface {
Init()
Pause(clear bool)