From 690d5e6dbd7922f7bedcf5caa9ca376e33b235d4 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 20 Oct 2023 17:37:08 +0900 Subject: [PATCH] Fix scrollability of the preview window when preview offset is specified This should not be scrollable fzf --preview 'seq $FZF_PREVIEW_LINES' --preview-window '~5' --- src/terminal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/terminal.go b/src/terminal.go index f7ce5b5..687352f 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -2081,7 +2081,7 @@ func (t *Terminal) printPreview() { unchanged := (t.previewed.filled || numLines == t.previewed.numLines) && t.previewer.version == t.previewed.version && t.previewer.offset == t.previewed.offset - t.previewer.scrollable = t.previewer.offset > 0 || numLines > height + t.previewer.scrollable = t.previewer.offset > t.previewOpts.headerLines || numLines > height t.renderPreviewArea(unchanged) t.renderPreviewSpinner() t.previewed.numLines = numLines