summaryrefslogtreecommitdiff
path: root/src/tui/tui.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/tui/tui.go')
-rw-r--r--src/tui/tui.go25
1 files changed, 12 insertions, 13 deletions
diff --git a/src/tui/tui.go b/src/tui/tui.go
index e7d3e42f..04d548f4 100644
--- a/src/tui/tui.go
+++ b/src/tui/tui.go
@@ -410,6 +410,18 @@ type BorderStyle struct {
type BorderCharacter int
func MakeBorderStyle(shape BorderShape, unicode bool) BorderStyle {
+ if shape == BorderNone {
+ return BorderStyle{
+ shape: BorderRounded,
+ top: ' ',
+ bottom: ' ',
+ left: ' ',
+ right: ' ',
+ topLeft: ' ',
+ topRight: ' ',
+ bottomLeft: ' ',
+ bottomRight: ' '}
+ }
if !unicode {
return BorderStyle{
shape: shape,
@@ -506,19 +518,6 @@ func MakeBorderStyle(shape BorderShape, unicode bool) BorderStyle {
}
}
-func MakeTransparentBorder() BorderStyle {
- return BorderStyle{
- shape: BorderRounded,
- top: ' ',
- bottom: ' ',
- left: ' ',
- right: ' ',
- topLeft: ' ',
- topRight: ' ',
- bottomLeft: ' ',
- bottomRight: ' '}
-}
-
type TermSize struct {
Lines int
Columns int