mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-01-15 19:56:55 +00:00
Fix preview scrollbar with '--preview-window bottom,border-line'
This commit is contained in:
parent
dfb88edb5e
commit
43eafdf4b7
@ -336,6 +336,10 @@ func (o *previewOpts) HasBorderRight() bool {
|
|||||||
return o.border.HasRight() || o.border == tui.BorderLine && o.position == posLeft
|
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 {
|
func defaultTmuxOptions(index int) *tmuxOptions {
|
||||||
return &tmuxOptions{
|
return &tmuxOptions{
|
||||||
position: posCenter,
|
position: posCenter,
|
||||||
|
@ -3231,7 +3231,7 @@ func (t *Terminal) renderPreviewScrollbar(yoff int, barLength int, barStart int)
|
|||||||
xshift = -1
|
xshift = -1
|
||||||
}
|
}
|
||||||
yshift := 1
|
yshift := 1
|
||||||
if !t.activePreviewOpts.border.HasTop() {
|
if !t.activePreviewOpts.HasBorderTop() {
|
||||||
yshift = 0
|
yshift = 0
|
||||||
}
|
}
|
||||||
for i := yoff; i < height; i++ {
|
for i := yoff; i < height; i++ {
|
||||||
|
Loading…
Reference in New Issue
Block a user