Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-core/src/doc_formatter/test.rs')
| -rw-r--r-- | helix-core/src/doc_formatter/test.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/helix-core/src/doc_formatter/test.rs b/helix-core/src/doc_formatter/test.rs index 415ce8f6..21be2e53 100644 --- a/helix-core/src/doc_formatter/test.rs +++ b/helix-core/src/doc_formatter/test.rs @@ -102,6 +102,14 @@ fn long_word_softwrap() { ); } +#[test] +fn softwrap_multichar_grapheme() { + assert_eq!( + softwrap_text("xxxx xxxx xxx a\u{0301}bc\n"), + "xxxx xxxx xxx \n.ábc \n " + ) +} + fn softwrap_text_at_text_width(text: &str) -> String { let mut text_fmt = TextFormat::new_test(true); text_fmt.soft_wrap_at_text_width = true; |