diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2016-10-04 01:40:45 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2016-10-04 01:40:45 +0900 |
| commit | 154cf22ffaf8f629113e5b83a34c72805df02548 (patch) | |
| tree | 2454136ae2f56e1109e2790a2c3b44a8424cfc11 /src | |
| parent | 51f532697ebd73f7e48a73b0fe2d2bf62271bcc5 (diff) | |
| download | fzf-154cf22ffaf8f629113e5b83a34c72805df02548.tar.gz | |
Display scroll indicator in preview window
Diffstat (limited to 'src')
| -rw-r--r-- | src/terminal.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/terminal.go b/src/terminal.go index 20e84414..e07eb3ce 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -822,6 +822,11 @@ func (t *Terminal) printPreview() { } return t.pwindow.Fill(str) }) + if t.previewer.offset > 0 { + offset := fmt.Sprintf("%d/%d", t.previewer.offset+1, t.previewer.lines) + t.pwindow.Move(0, t.pwindow.Width-len(offset)) + t.pwindow.CPrint(C.ColInfo, C.Reverse, offset) + } } func processTabs(runes []rune, prefixWidth int) (string, int) { |
