mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-06-13 15:13:53 +00:00
Merge branch 'grapheme-break' into grapheme-width-changes
This commit is contained in:
@@ -23,8 +23,8 @@ fn computeWidth(
|
||||
// This condition is to get the previous behavior of uucode's `wcwidth`,
|
||||
// returning the width of a code point in a grapheme cluster but with the
|
||||
// exception to treat emoji modifiers as width 2 so they can be displayed
|
||||
// in isolation. PRs immediately to follow will take advantage of the new
|
||||
// uucode `wcwidth_standalone` vs `wcwidth_zero_in_grapheme` split.
|
||||
// in isolation. PRs to follow will take advantage of the new uucode
|
||||
// `wcwidth_standalone` vs `wcwidth_zero_in_grapheme` split.
|
||||
if (data.wcwidth_zero_in_grapheme and !data.is_emoji_modifier) {
|
||||
data.width = 0;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user