Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Correctly implement char_display_len on buffer.rs #37

Open
vamolessa opened this issue Mar 6, 2022 · 0 comments
Open

Correctly implement char_display_len on buffer.rs #37

vamolessa opened this issue Mar 6, 2022 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@vamolessa
Copy link
Owner

This function is used to tell the width of a char. It currently always returns 1.
We should parse the unicode database which contains codepoints display widths and implement this function using that data.
This will enable, for example, correctly rendering buffers which contain CJK symbols which usually have a display length of 2.

@vamolessa vamolessa added this to the v1.0 milestone Mar 6, 2022
@vamolessa vamolessa added the enhancement New feature or request label Aug 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant