diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2024-12-08 21:09:27 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2024-12-12 13:53:08 +0900 |
| commit | 289997e37330c8429fa0d2d3f7b0a3e0ddf970f2 (patch) | |
| tree | d0a36e379ec497dbdc35a6ee23a3105e09d1f067 /src/tui | |
| parent | db44cbdff0c51d9b81c9df0e217659a78a6d91ef (diff) | |
| download | fzf-289997e37330c8429fa0d2d3f7b0a3e0ddf970f2.tar.gz | |
Refactor
Diffstat (limited to 'src/tui')
| -rw-r--r-- | src/tui/tui.go | 25 |
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 |
