Fix the background color of the scrollbar inside the preview window

This commit is contained in:
Junegunn Choi
2023-05-01 16:18:26 +09:00
parent b7c2e8cb67
commit e619b7c4f4
3 changed files with 4 additions and 2 deletions

View File

@@ -1954,7 +1954,7 @@ func (t *Terminal) renderPreviewScrollbar(yoff int, barLength int, barStart int)
t.previewer.bar[i] = bar
t.pborder.Move(y, x)
if i >= yoff+barStart && i < yoff+barStart+barLength {
t.pborder.CPrint(tui.ColScrollbar, t.scrollbar)
t.pborder.CPrint(tui.ColPreviewScrollbar, t.scrollbar)
} else {
t.pborder.Print(" ")
}