m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-15 14:53:47 -05:00

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

@@ -3231,7 +3231,7 @@ func (t *Terminal) renderPreviewScrollbar(yoff int, barLength int, barStart int)
xshift = -1
}
yshift := 1
if !t.activePreviewOpts.border.HasTop() {
if !t.activePreviewOpts.HasBorderTop() {
yshift = 0
}
for i := yoff; i < height; i++ {