diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-03-22 16:33:15 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-03-22 16:33:15 +0100 |
commit | dc4fa190e7b9d6ba49416ce875d2192c4444d3eb (patch) | |
tree | bd25a63a1ba370df4e7dd8e1213497d6fed1817d /src/mbyte.c | |
parent | 6b6f7aae4a3329d685e512699287605540257b40 (diff) | |
download | vim-git-dc4fa190e7b9d6ba49416ce875d2192c4444d3eb.tar.gz |
patch 8.1.1038: Arabic support excludes Farsiv8.1.1038
Problem: Arabic support excludes Farsi.
Solution: Add Farsi support to the Arabic support. (Ali Gholami Rudi,
Ameretat Reith)
Diffstat (limited to 'src/mbyte.c')
-rw-r--r-- | src/mbyte.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/mbyte.c b/src/mbyte.c index 9ad640460..a9932a143 100644 --- a/src/mbyte.c +++ b/src/mbyte.c @@ -1912,35 +1912,6 @@ mb_cptr2char_adv(char_u **pp) #if defined(FEAT_ARABIC) || defined(PROTO) /* - * Check whether we are dealing with Arabic combining characters. - * Note: these are NOT really composing characters! - */ - int -arabic_combine( - int one, /* first character */ - int two) /* character just after "one" */ -{ - if (one == a_LAM) - return arabic_maycombine(two); - return FALSE; -} - -/* - * Check whether we are dealing with a character that could be regarded as an - * Arabic combining character, need to check the character before this. - */ - int -arabic_maycombine(int two) -{ - if (p_arshape && !p_tbidi) - return (two == a_ALEF_MADDA - || two == a_ALEF_HAMZA_ABOVE - || two == a_ALEF_HAMZA_BELOW - || two == a_ALEF); - return FALSE; -} - -/* * Check if the character pointed to by "p2" is a composing character when it * comes after "p1". For Arabic sometimes "ab" is replaced with "c", which * behaves like a composing character. |