Mercurial > vim
diff src/macros.h @ 16066:473fbdb2717c v8.1.1038
patch 8.1.1038: Arabic support excludes Farsi
commit https://github.com/vim/vim/commit/dc4fa190e7b9d6ba49416ce875d2192c4444d3eb
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Mar 22 16:33:15 2019 +0100
patch 8.1.1038: Arabic support excludes Farsi
Problem: Arabic support excludes Farsi.
Solution: Add Farsi support to the Arabic support. (Ali Gholami Rudi,
Ameretat Reith)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 22 Mar 2019 16:45:05 +0100 |
parents | 7fad90423bd2 |
children | cd5c83115ec6 |
line wrap: on
line diff
--- 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))