Skip to content
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

fzy will auto insert blank line if a line has CJK character and the line length more than terminal width #167

Open
jack6th opened this issue Jan 15, 2022 · 0 comments

Comments

@jack6th
Copy link

jack6th commented Jan 15, 2022

Tested with msys2 on Windows.
Reproduce:
Open a msys2 terminal on Windows.
Do not maximize or fullscreen it.
Set the terminal column to 80 (default value).
Input
perl -E '$a="a"x88;say "$a汉字"' | fzy
Now press Ctrl+n five times. The result is

$ perl -E '$a="a"x88;say "$a汉字"' | fzy
>
>
>
>
>
>
> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
汉字

It will mess the result screen if the input has many lines like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant