mirror of
https://github.com/junegunn/fzf.git
synced 2026-10-14 08:59:01 +08:00
Add 'noinfo' option to hide scroll offset information in preview window
fzf --preview 'seq 1000' --preview-window noinfo Close #2525
This commit is contained in:
4 files changed
+23
-6
No files matched your search
+1
-1
@@ -2507,7 +2507,7 @@ func (t *Terminal) renderPreviewSpinner() {
|
||||
spin := t.previewer.spinner
|
||||
if len(spin) > 0 || t.previewer.scrollable {
|
||||
maxWidth := t.pwindow.Width()
|
||||
if !t.previewer.scrollable {
|
||||
if !t.previewer.scrollable || !t.previewOpts.info {
|
||||
if maxWidth > 0 {
|
||||
t.pwindow.Move(0, maxWidth-1)
|
||||
t.pwindow.CPrint(tui.ColPreviewSpinner, spin)
|
||||
|
||||
Reference in new issue
Block a user