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
Labels
enhancement
New feature or request
Milestone
This function is used to tell the width of a
char
. It currently always returns1
.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
.The text was updated successfully, but these errors were encountered: