mirror of
https://github.com/junegunn/fzf.git
synced 2025-09-02 21:33:50 -07:00
Fix background color of spinner on the preview window
This commit is contained in:
@@ -1823,7 +1823,7 @@ func (t *Terminal) renderPreviewSpinner() {
|
||||
if !t.previewer.scrollable {
|
||||
if maxWidth > 0 {
|
||||
t.pwindow.Move(0, maxWidth-1)
|
||||
t.pwindow.CPrint(tui.ColSpinner, spin)
|
||||
t.pwindow.CPrint(tui.ColPreviewSpinner, spin)
|
||||
}
|
||||
} else {
|
||||
offsetString := fmt.Sprintf("%d/%d", t.previewer.offset+1, numLines)
|
||||
@@ -1835,7 +1835,7 @@ func (t *Terminal) renderPreviewSpinner() {
|
||||
pos := maxWidth - t.displayWidth(offsetRunes)
|
||||
t.pwindow.Move(0, pos)
|
||||
if maxWidth > 0 {
|
||||
t.pwindow.CPrint(tui.ColSpinner, spin)
|
||||
t.pwindow.CPrint(tui.ColPreviewSpinner, spin)
|
||||
t.pwindow.CPrint(tui.ColInfo.WithAttr(tui.Reverse), string(offsetRunes))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user