diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/arabic.c | 6 | ||||
-rw-r--r-- | src/arabic.h | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/arabic.c b/src/arabic.c index c72ed306a5..54f88f8757 100644 --- a/src/arabic.c +++ b/src/arabic.c @@ -1363,12 +1363,6 @@ static int half_shape(int c) return 0; } -/// Whether c belongs to the range of Arabic characters that might be shaped. -int arabic_char(int c) -{ - return c >= a_HAMZA && c <= a_MINI_ALEF; -} - /* * Do Arabic shaping on character "c". Returns the shaped character. * out: "ccp" points to the first byte of the character to be shaped. diff --git a/src/arabic.h b/src/arabic.h index 2c435faa5c..5129b5a56a 100644 --- a/src/arabic.h +++ b/src/arabic.h @@ -1,7 +1,13 @@ #ifndef NEOVIM_ARABIC_H #define NEOVIM_ARABIC_H -int arabic_char(int c); +/// Whether c belongs to the range of Arabic characters that might be shaped. +static inline int arabic_char(int c) +{ + // return c >= a_HAMZA && c <= a_MINI_ALEF; + return c >= 0x0621 && c <= 0x0670; +} + int arabic_shape(int c, int *ccp, int *c1p, int prev_c, int prev_c1, int next_c); int arabic_combine(int one, int two); |