m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 00:03:39 -05:00

Add scrollbar to the preview window

This commit is contained in:
Junegunn Choi
2023-01-06 15:36:12 +09:00
parent ee5cdb9713
commit 3b2244077d
4 changed files with 123 additions and 24 deletions

View File

@@ -307,6 +307,22 @@ const (
BorderRight
)
func (s BorderShape) HasRight() bool {
switch s {
case BorderNone, BorderLeft, BorderTop, BorderBottom, BorderHorizontal: // No right
return false
}
return true
}
func (s BorderShape) HasTop() bool {
switch s {
case BorderNone, BorderLeft, BorderRight, BorderBottom, BorderVertical: // No top
return false
}
return true
}
type BorderStyle struct {
shape BorderShape
horizontal rune