Skip to content

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

@jack6th

Description

@jack6th

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions