mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-30 00:33:56 +00:00
Always print scroll indicator in preview window
This commit is contained in:
parent
dffef3d9f3
commit
3858086047
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user