aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/grid.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-10 06:01:49 +0800
committerGitHub <noreply@github.com>2022-07-10 06:01:49 +0800
commitd6a1e718813f744b997e1b8fc707cbd47125db5c (patch)
treef66d31a64479a248cde583f11a593d8c199c6057 /src/nvim/grid.c
parent782f7261363f7242cf7472e64434604915fa3075 (diff)
downloadrneovim-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/grid.c')
-rw-r--r--src/nvim/grid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/grid.c b/src/nvim/grid.c
index 7d407bd3d1..1268f987e1 100644
--- a/src/nvim/grid.c
+++ b/src/nvim/grid.c
@@ -241,7 +241,7 @@ void grid_puts_len(ScreenGrid *grid, char_u *text, int textlen, int row, int col
u8c = utfc_ptr2char(ptr, u8cc);
}
mbyte_cells = utf_char2cells(u8c);
- if (p_arshape && !p_tbidi && arabic_char(u8c)) {
+ if (p_arshape && !p_tbidi && ARABIC_CHAR(u8c)) {
// Do Arabic shaping.
if (len >= 0 && (int)(ptr - text) + mbyte_blen >= len) {
// Past end of string to be displayed.