junegunn / fzf

:cherry_blossom: A command-line fuzzy finder
https://junegunn.github.io/fzf/
MIT License
65.89k stars 2.41k forks source link

spurious characters from previous view in preview window #4075

Closed ALTree closed 3 weeks ago

ALTree commented 4 weeks ago
$ fzf --version
0.56.0 (ff16877)

Using Bash on Linux. Reproducer:

echo -e "aaaaaaaaaa \nbbbbbbbbb" | fzf --preview-window=10 --preview="echo {}"

First item preview is correct:

1

The second isn't (note the a at the end):

2

The last column of the preview window hasn't been cleaned, and it shows the a that was in that position for the previous item.

junegunn commented 3 weeks ago

Thanks, bacc860 should fix it, but please let me know if you see any regression from the change.