mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-15 14:53:47 -05:00
Always print scroll indicator in preview window
This commit is contained in:
@@ -833,7 +833,7 @@ func (t *Terminal) printPreview() {
|
||||
}
|
||||
return t.pwindow.Fill(str)
|
||||
})
|
||||
if t.previewer.offset > 0 {
|
||||
if t.previewer.lines > t.pwindow.Height {
|
||||
offset := fmt.Sprintf("%d/%d", t.previewer.offset+1, t.previewer.lines)
|
||||
t.pwindow.Move(0, t.pwindow.Width-len(offset))
|
||||
t.pwindow.CPrint(tui.ColInfo, tui.Reverse, offset)
|
||||
|
||||
Reference in New Issue
Block a user