mirror of
https://github.com/wez/wezterm.git
synced 2024-09-21 03:39:16 +03:00
1ab438c1e2
I noticed while scrolling `emoji-test.txt` that some of the combined emoji sequences rendered very poorly. This was due to the unicode width being reported as up to 4 in some cases. Digging into it, I discovered that the unicode width crate uses a standard calculation that doesn't take emoji combination sequences into account (see https://github.com/unicode-rs/unicode-width/issues/4). This commit takes a dep on the xi-unicode crate as a lightweight way to gain access to emoji tables and test whether a given grapheme is part of a combining sequence of emoji. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |