Skip to content

Commit

Permalink
comment typo unicode_segmentation -> unicode-width
Browse files Browse the repository at this point in the history
refers to the crate
  • Loading branch information
correabuscar committed Jun 10, 2024
1 parent 4d1689d commit e50a2d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cursive-core/src/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,12 @@ impl PrintBuffer {
let width = g.width();
if width == 0 {
// Any zero-width grapheme can be ignored.
// With unicode_segmentation < 0.1.13, this includes control chars.
// With unicode-width < 0.1.13, this includes control chars.
continue;
}

if is_control_char(g) {
// With unicode_segmentation >= 0.1.13, control chars have non-zero width (in
// With unicode-width >= 0.1.13, control chars have non-zero width (in
// practice width = 1).
debug_assert_eq!(
1, width,
Expand Down

0 comments on commit e50a2d8

Please sign in to comment.