Turn ARABIC_CHAR into a function

This commit is contained in:
Felipe Oliveira Carvalho
2014-03-21 23:55:09 -03:00
committed by Thiago de Arruda
parent 7bd4d68d93
commit fd6fd35eef
4 changed files with 13 additions and 6 deletions

View File

@@ -12,6 +12,7 @@
*/
#include "vim.h"
#include "arabic.h"
#include "ex_getln.h"
#include "buffer.h"
#include "charset.h"
@@ -2100,7 +2101,7 @@ static void draw_cmdline(int start, int len)
p = ccline.cmdbuff + j;
u8c = utfc_ptr2char_len(p, u8cc, start + len - j);
mb_l = utfc_ptr2len_len(p, start + len - j);
if (ARABIC_CHAR(u8c)) {
if (arabic_char(u8c)) {
/* Do Arabic shaping. */
if (cmdmsg_rl) {
/* displaying from right to left */