Mercurial > vim
diff src/mbyte.c @ 16066:473fbdb2717c v8.1.1038
patch 8.1.1038: Arabic support excludes Farsi
commit https://github.com/vim/vim/commit/dc4fa190e7b9d6ba49416ce875d2192c4444d3eb
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Mar 22 16:33:15 2019 +0100
patch 8.1.1038: Arabic support excludes Farsi
Problem: Arabic support excludes Farsi.
Solution: Add Farsi support to the Arabic support. (Ali Gholami Rudi,
Ameretat Reith)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 22 Mar 2019 16:45:05 +0100 |
parents | 7fad90423bd2 |
children | 304283d2a772 |
line wrap: on
line diff
--- 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.