Skip to content

Commit 6f3834d

Browse files
authored
Merge pull request #86 from uutils/renovate/unicode-width-0.x-lockfile
Update Rust crate unicode-width to v0.1.14
2 parents 63d51bc + d8b91fd commit 6f3834d

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,11 @@ mod tests {
101101

102102
// Note: The Woman Scientist emoji (👩‍🔬) is a ZWJ sequence combining
103103
// the Woman emoji (👩) and the Microscope emoji (🔬). On supported platforms
104-
// it is displayed as a single emoji and should have a print size of 2 columns,
105-
// but terminal emulators tend to not support this, and display the two emojis
106-
// side by side, thus accounting for a print size of 4 columns.
107-
assert_tab_expansion("foo\t👩‍🔬\tbaz", 6, "foo 👩‍🔬 baz");
104+
// it is displayed as a single emoji and has a print size of 2 columns.
105+
// Terminal emulators tend to not support this, and display the two emojis
106+
// side by side, thus accounting for a print size of 4 columns, but the
107+
// unicode_width crate reports a correct size of 2.
108+
assert_tab_expansion("foo\t👩‍🔬\tbaz", 6, "foo 👩‍🔬 baz");
108109
}
109110

110111
#[test]

0 commit comments

Comments
 (0)