diff options
author | Matthias Clasen <mclasen@redhat.com> | 2023-02-05 00:46:49 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2023-02-05 00:46:49 +0000 |
commit | 5ecefd34a1594da879309f2b84296ea6f1a62a7b (patch) | |
tree | 3ea039a4f63f52533d4ce6dd54b62ac393f22b69 /pango/break.c | |
parent | 37ab3d7c6c2ec51439c86f6bbe989258396f67af (diff) | |
parent | 39aaf0b5925b3ddb40e7f6da35b5186872e10f13 (diff) | |
download | pango-5ecefd34a1594da879309f2b84296ea6f1a62a7b.tar.gz |
Merge branch 'backspace-tweaks' into 'main'
Tweak backspace-deletes-character
See merge request GNOME/pango!675
Diffstat (limited to 'pango/break.c')
-rw-r--r-- | pango/break.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pango/break.c b/pango/break.c index 229a199a..0b636af9 100644 --- a/pango/break.c +++ b/pango/break.c @@ -127,7 +127,8 @@ static const CharJamoProps HangulJamoProps[] = { #define KANA(wc) ((wc) >= 0x3040 && (wc) <= 0x30FF) #define HANGUL(wc) ((wc) >= 0xAC00 && (wc) <= 0xD7A3) #define EMOJI(wc) (_pango_Is_Emoji_Base_Character (wc)) -#define BACKSPACE_DELETES_CHARACTER(wc) (!LATIN (wc) && !CYRILLIC (wc) && !GREEK (wc) && !KANA (wc) && !HANGUL (wc) && !EMOJI (wc)) +#define MATH(wc) ((wc) >= 0x2200 && (wc) <= 0x22FF) +#define BACKSPACE_DELETES_CHARACTER(wc) (!LATIN (wc) && !CYRILLIC (wc) && !GREEK (wc) && !KANA (wc) && !HANGUL (wc) && !EMOJI (wc) && !MATH (wc)) /* Previously "123foo" was two words. But in UAX 29 of Unicode, * we know don't break words between consecutive letters and numbers |