diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-07-10 06:01:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-10 06:01:49 +0800 |
commit | d6a1e718813f744b997e1b8fc707cbd47125db5c (patch) | |
tree | f66d31a64479a248cde583f11a593d8c199c6057 /src/nvim/ex_getln.c | |
parent | 782f7261363f7242cf7472e64434604915fa3075 (diff) | |
download | rneovim-d6a1e718813f744b997e1b8fc707cbd47125db5c.tar.gz rneovim-d6a1e718813f744b997e1b8fc707cbd47125db5c.tar.bz2 rneovim-d6a1e718813f744b997e1b8fc707cbd47125db5c.zip |
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)
https://github.com/vim/vim/commit/dc4fa190e7b9d6ba49416ce875d2192c4444d3eb
Omit Test_shape_final_to_medial(): removed in later patches.
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r-- | src/nvim/ex_getln.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 7e22ed55cb..32977569c3 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -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; |