mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-10-31 19:22:30 +00:00
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'
This commit is contained in:
parent
a76c055b63
commit
690d5e6dbd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user