diff --git a/Cargo.lock b/Cargo.lock index feb47c46b9..ecad53d2d8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3363,7 +3363,7 @@ dependencies = [ "trash", "umask", "unicode-segmentation", - "unicode-width 0.1.11", + "unicode-width 0.2.0", "ureq", "url", "uu_cp", @@ -3426,7 +3426,7 @@ dependencies = [ "nu-utils", "ratatui", "strip-ansi-escapes", - "unicode-width 0.1.11", + "unicode-width 0.2.0", ] [[package]] @@ -3666,7 +3666,7 @@ name = "nu-term-grid" version = "0.100.1" dependencies = [ "nu-utils", - "unicode-width 0.1.11", + "unicode-width 0.2.0", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 12d2197cad..67c9e18c41 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -162,7 +162,7 @@ toml = "0.8" trash = "5.2" umask = "2.1" unicode-segmentation = "1.12" -unicode-width = "0.1" +unicode-width = "0.2" ureq = { version = "2.10", default-features = false } url = "2.2" uu_cp = "0.0.28" diff --git a/crates/nu-command/src/strings/str_/stats.rs b/crates/nu-command/src/strings/str_/stats.rs index 586a48ffde..8722a030d4 100644 --- a/crates/nu-command/src/strings/str_/stats.rs +++ b/crates/nu-command/src/strings/str_/stats.rs @@ -307,7 +307,7 @@ fn test_one_newline() { correct_counts.insert(Counter::GraphemeClusters, 1); correct_counts.insert(Counter::Bytes, 1); correct_counts.insert(Counter::CodePoints, 1); - correct_counts.insert(Counter::UnicodeWidth, 0); + correct_counts.insert(Counter::UnicodeWidth, 1); assert_eq!(correct_counts, counts); } @@ -347,7 +347,7 @@ fn test_count_counts_lines() { // one more than grapheme clusters because of \r\n correct_counts.insert(Counter::CodePoints, 24); - correct_counts.insert(Counter::UnicodeWidth, 17); + correct_counts.insert(Counter::UnicodeWidth, 23); assert_eq!(correct_counts, counts); }