vamolessa / pepper

simple and opinionated modal code editor for your terminal
https://vamolessa.github.io/pepper/
372 stars 17 forks source link

Correctly implement `char_display_len` on `buffer.rs` #37

Open vamolessa opened 2 years ago

vamolessa commented 2 years ago

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.