diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-01-06 00:44:59 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-01-06 00:44:59 +0900 |
| commit | 0e0b86834294e1befb9e1ce16239230aa40d1add (patch) | |
| tree | 4e8fec876561cdb810299c0126a838f27d7b9553 /src/tui | |
| parent | a5beb08ed72215e8b015851ad70bf3beca526429 (diff) | |
| download | fzf-0e0b86834294e1befb9e1ce16239230aa40d1add.tar.gz | |
Add preview border style 'line'
It draws a single line between the preview window and the rest of the
interface. i.e. automatically choose between 'left', 'right', 'top', and
'bottom' depending on the position of the preview window.
Diffstat (limited to 'src/tui')
| -rw-r--r-- | src/tui/tui.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/tui/tui.go b/src/tui/tui.go index db846f75..2bd9caf9 100644 --- a/src/tui/tui.go +++ b/src/tui/tui.go @@ -358,6 +358,7 @@ type BorderShape int const ( BorderUndefined BorderShape = iota + BorderLine BorderNone BorderRounded BorderSharp @@ -375,7 +376,7 @@ const ( func (s BorderShape) HasLeft() bool { switch s { - case BorderNone, BorderRight, BorderTop, BorderBottom, BorderHorizontal: // No Left + case BorderNone, BorderLine, BorderRight, BorderTop, BorderBottom, BorderHorizontal: // No Left return false } return true @@ -383,7 +384,7 @@ func (s BorderShape) HasLeft() bool { func (s BorderShape) HasRight() bool { switch s { - case BorderNone, BorderLeft, BorderTop, BorderBottom, BorderHorizontal: // No right + case BorderNone, BorderLine, BorderLeft, BorderTop, BorderBottom, BorderHorizontal: // No right return false } return true @@ -391,7 +392,7 @@ func (s BorderShape) HasRight() bool { func (s BorderShape) HasTop() bool { switch s { - case BorderNone, BorderLeft, BorderRight, BorderBottom, BorderVertical: // No top + case BorderNone, BorderLine, BorderLeft, BorderRight, BorderBottom, BorderVertical: // No top return false } return true @@ -399,7 +400,7 @@ func (s BorderShape) HasTop() bool { func (s BorderShape) HasBottom() bool { switch s { - case BorderNone, BorderLeft, BorderRight, BorderTop, BorderVertical: // No bottom + case BorderNone, BorderLine, BorderLeft, BorderRight, BorderTop, BorderVertical: // No bottom return false } return true |
