summaryrefslogtreecommitdiff
path: root/src/macros.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-03-22 16:33:15 +0100
committerBram Moolenaar <Bram@vim.org>2019-03-22 16:33:15 +0100
commitdc4fa190e7b9d6ba49416ce875d2192c4444d3eb (patch)
treebd25a63a1ba370df4e7dd8e1213497d6fed1817d /src/macros.h
parent6b6f7aae4a3329d685e512699287605540257b40 (diff)
downloadvim-git-dc4fa190e7b9d6ba49416ce875d2192c4444d3eb.tar.gz
patch 8.1.1038: Arabic support excludes Farsiv8.1.1038
Problem: Arabic support excludes Farsi. Solution: Add Farsi support to the Arabic support. (Ali Gholami Rudi, Ameretat Reith)
Diffstat (limited to 'src/macros.h')
-rw-r--r--src/macros.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/macros.h b/src/macros.h
index b81af8c60..510be9bda 100644
--- a/src/macros.h
+++ b/src/macros.h
@@ -210,6 +210,7 @@
#define REPLACE_NORMAL(s) (((s) & REPLACE_FLAG) && !((s) & VREPLACE_FLAG))
#ifdef FEAT_ARABIC
+# define ARABIC_CHAR(ch) (((ch) & 0xFF00) == 0x0600)
# define UTF_COMPOSINGLIKE(p1, p2) utf_composinglike((p1), (p2))
#else
# define UTF_COMPOSINGLIKE(p1, p2) utf_iscomposing(utf_ptr2char(p2))