-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--preview-window wrap
breaks preview scrolling in some condition.
#4258
Comments
--preview-window wrap
broken preview scrolling in some condition.--preview-window wrap
breaks preview scrolling in some condition.
When the last rendered line was wrapped, fzf would incorrectly determine the scrollability of the window.
Thanks. 0ba0661 will fix the scrollability problem. Please test it and let me know. fzf --preview-window wrap --preview 'seq $((FZF_PREVIEW_LINES - 2)); yes | head -$((FZF_PREVIEW_COLUMNS + 1)) | xargs | sed "s/ //g"; echo more' However, Lines 6078 to 6178 in 0ba0661
So I'm going to leave it as an open issue (tentatively |
Checklist
man fzf
)Output of
fzf --version
0.60.0 (6fa8295)
OS
Shell
Problem / Steps to reproduce
I have a text file named
preview-scroll-test.txt
And I saved below script like
fzf-preview-scroll-test.sh
When I execute the script.
Line 24~
is hidden cause of very precise wrapping.And
up
anddown
bindings not working.Let's remove those X phrase on
Line 23
.Then execute the script again.
Line 24 shows up but scrolling still not working.
Now restore those X phase and put a single
#
at the end ofLine 23
.Scrolling is back to work, but
Line 24
is gone.1more-result.mp4
As you can see, to reproducing this issue, user need to prepare a precise text file for their terminal setting.
Like increasing
Line N
and#
andX
. (Or using fzf's own setting.)Note. When you adjust the terminal screen size, issue may gone.
EDIT: At the last case,
Line 24
wasn't exactly gone, but only can be found withpreview-down
.The text was updated successfully, but these errors were encountered: