Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-core/src/chars.rs')
-rw-r--r--helix-core/src/chars.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-core/src/chars.rs b/helix-core/src/chars.rs
index 22050069..817bbb86 100644
--- a/helix-core/src/chars.rs
+++ b/helix-core/src/chars.rs
@@ -63,10 +63,10 @@ pub fn char_is_whitespace(ch: char) -> bool {
#[inline]
pub fn char_is_punctuation(ch: char) -> bool {
- use icu_properties::{maps::general_category, GeneralCategory};
+ use unicode_general_category::{get_general_category, GeneralCategory};
matches!(
- general_category().get(ch),
+ get_general_category(ch),
GeneralCategory::OtherPunctuation
| GeneralCategory::OpenPunctuation
| GeneralCategory::ClosePunctuation