commit 7f488886e3eb41c090f582a22d28385485e92290
parent acba5eb223bad88603a36c7fc7a4d4e98a5a19dd
Author: William Casarin <jb55@jb55.com>
Date: Sun, 17 Dec 2023 13:29:40 -0800
re-apply ispunct crash fix
since it was overwritten when we synced with damus
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cursor.h b/cursor.h
@@ -568,7 +568,7 @@ static inline int is_punctuation(unsigned int codepoint) {
return 0;
// Check for ASCII punctuation
- if (ispunct(codepoint))
+ if (codepoint <= 128 && ispunct(codepoint))
return 1;
// Check for Unicode punctuation exceptions (punctuation allowed in hashtags)