Fix preview scrollbar with '--preview-window bottom,border-line'

This commit is contained in:
Junegunn Choi
2025-01-11 00:53:07 +09:00
parent dfb88edb5e
commit 43eafdf4b7
2 changed files with 5 additions and 1 deletions

View File

@@ -336,6 +336,10 @@ func (o *previewOpts) HasBorderRight() bool {
return o.border.HasRight() || o.border == tui.BorderLine && o.position == posLeft
}
func (o *previewOpts) HasBorderTop() bool {
return o.border.HasTop() || o.border == tui.BorderLine && o.position == posDown
}
func defaultTmuxOptions(index int) *tmuxOptions {
return &tmuxOptions{
position: posCenter,