From 3858086047e0de96ffe81ab966107b022c8adc2a Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sat, 26 Nov 2016 12:34:00 +0900 Subject: [PATCH] Always print scroll indicator in preview window --- src/terminal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/terminal.go b/src/terminal.go index 315d9f1..971cd2b 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -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)