aboutsummaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2014-03-21 23:55:09 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-24 18:23:23 -0300
commitfd6fd35eef766d4ad80f8c0dd77e3b2dea026bcf (patch)
tree8aaa9cdcfa450241b9a4aaa3e14cbe0b75909583 /src/screen.c
parent7bd4d68d9316e13c6a8b3ff805daaf6b4c35e18c (diff)
downloadrneovim-fd6fd35eef766d4ad80f8c0dd77e3b2dea026bcf.tar.gz
rneovim-fd6fd35eef766d4ad80f8c0dd77e3b2dea026bcf.tar.bz2
rneovim-fd6fd35eef766d4ad80f8c0dd77e3b2dea026bcf.zip
Turn ARABIC_CHAR into a function
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/screen.c b/src/screen.c
index 11238995c0..95775f3bcb 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -88,6 +88,7 @@
*/
#include "vim.h"
+#include "arabic.h"
#include "screen.h"
#include "buffer.h"
#include "charset.h"
@@ -1868,7 +1869,7 @@ static void fold_line(win_T *wp, long fold_count, foldinfo_T *foldinfo, linenr_T
ScreenLinesUC[idx] = 0;
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];
@@ -3049,7 +3050,7 @@ win_line (
}
} 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];
@@ -5218,7 +5219,7 @@ void screen_puts_len(char_u *text, int len, int row, int col, int attr)
attr = hl_attr(HLF_8);
}
# endif
- 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. */