Skip to content
Snippets Groups Projects
Unverified Commit 38580860 authored by Junegunn Choi's avatar Junegunn Choi
Browse files

Always print scroll indicator in preview window

parent dffef3d9
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment