Closed
Description
Checklist
- I have read through the manual page (
man fzf
) - I have searched through the existing issues
- For bug reports, I have checked if the bug is reproducible in the latest version of fzf
Output of fzf --version
0.56 (devel)
OS
- Linux
- macOS
- Windows
- Etc.
Shell
- bash
- zsh
- fish
Problem / Steps to reproduce
With one-line items, when doing PgUp (bound by default to page-up
) and PgDn (bound by default to page-down
), if 21 lines (and so 21 items) are visible as in the following example:
for i in {01..99}; do echo -ne "item $i\0"; done | fzf --read0 --reverse --height=23
each movement one page up or down goes 20 lines (and so 20 items) up or down the list, as one would expect.
But in the following example with 2-line items, where 21 lines (and so 10.5 items) are visible:
for i in {01..99}; do echo -ne "item $i, line 1\nitem $i, line 2\0"; done | fzf --read0 --reverse --height=23
each movement one page up or down doesn’t go about 20 lines up or down the list, as one would expect, but 20 items (so 40 lines) up or down the list, so that each time we go up or down, we skip about 10 items.