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.60 (devel)
OS
- Linux
- macOS
- Windows
- Etc.
Shell
- bash
- zsh
- fish
Problem / Steps to reproduce
Since commit 84e2262#diff-37113d7d967fa0fd21c0250890d9cda61c7d2591eeedd43017e9e7bc471b432aL138, newlines are no longer stripped from the end of each item when there are extra bytes (such as ANSI escape sequences) after the newline.
Before 84e2262:
fzfbefore-an.mp4
After:
fzfafter-an.mp4
Also, if you look at the after video I am moving back and forth between the first and second item and when I am focused on the second item the first item is no longer shown.
Here is a simple reproducing command:
printf "foo\n\e[0m\0bar\n\e[0m\0baz\n\e[0m\0" | ./fzf --read0 --ansi --with-nth ..
Before 84e2262:
After:
I will also try and find a reproducing command for the first item not showing.
Metadata
Metadata
Assignees
Labels
No labels