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/screen.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/screen.c')
-rw-r--r-- | src/nvim/screen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index 32e2d515e1..03d7cb1783 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -1869,7 +1869,7 @@ static int line_putchar(buf_T *buf, LineState *s, schar_T *dest, int maxcells, b schar_from_ascii(dest[0], *p); s->prev_c = u8c; } else { - if (p_arshape && !p_tbidi && arabic_char(u8c)) { + if (p_arshape && !p_tbidi && ARABIC_CHAR(u8c)) { // Do Arabic shaping. int pc, pc1, nc; int pcc[MAX_MCO]; @@ -3157,7 +3157,7 @@ static int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool noc } } else if (mb_l == 0) { // at the NUL at end-of-line mb_l = 1; - } else if (p_arshape && !p_tbidi && arabic_char(mb_c)) { + } else if (p_arshape && !p_tbidi && ARABIC_CHAR(mb_c)) { // Do Arabic shaping. int pc, pc1, nc; int pcc[MAX_MCO]; |