vim-patch:8.1.1038: Arabic support excludes Farsi (#19285)

Problem:    Arabic support excludes Farsi.
Solution:   Add Farsi support to the Arabic support. (Ali Gholami Rudi,
            Ameretat Reith)
dc4fa190e7

Omit Test_shape_final_to_medial(): removed in later patches.
This commit is contained in:
zeertzjq
2022-07-10 06:01:49 +08:00
committed by GitHub
parent 782f726136
commit d6a1e71881
5 changed files with 203 additions and 908 deletions

View File

@@ -3224,7 +3224,7 @@ static void draw_cmdline(int start, int len)
int u8cc[MAX_MCO];
int u8c = utfc_ptr2char_len(p, u8cc, start + len - i);
mb_l = utfc_ptr2len_len(p, start + len - i);
if (arabic_char(u8c)) {
if (ARABIC_CHAR(u8c)) {
do_arabicshape = true;
break;
}
@@ -3260,7 +3260,7 @@ static void draw_cmdline(int start, int len)
int u8cc[MAX_MCO];
int u8c = utfc_ptr2char_len(p, u8cc, start + len - i);
mb_l = utfc_ptr2len_len(p, start + len - i);
if (arabic_char(u8c)) {
if (ARABIC_CHAR(u8c)) {
int pc;
int pc1 = 0;
int nc = 0;