Skip to content

Commit

Permalink
re-apply ispunct crash fix
Browse files Browse the repository at this point in the history
since it was overwritten when we synced with damus
  • Loading branch information
jb55 committed Dec 17, 2023
1 parent acba5eb commit 7f48888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cursor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7f48888

Please sign in to comment.