diff options
Diffstat (limited to 'src/nvim/arabic.c')
-rw-r--r-- | src/nvim/arabic.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/nvim/arabic.c b/src/nvim/arabic.c index bab77a4a84..9dbb2c06e1 100644 --- a/src/nvim/arabic.c +++ b/src/nvim/arabic.c @@ -297,13 +297,12 @@ static int A_is_valid(int c) } // Do Arabic shaping on character "c". Returns the shaped character. -// out: "ccp" points to the first byte of the character to be shaped. // in/out: "c1p" points to the first composing char for "c". // in: "prev_c" is the previous character (not shaped) // in: "prev_c1" is the first composing char for the previous char // (not shaped) // in: "next_c" is the next character (not shaped). -int arabic_shape(int c, int *ccp, int *c1p, int prev_c, int prev_c1, int next_c) +int arabic_shape(int c, int *c1p, int prev_c, int prev_c1, int next_c) { // Deal only with Arabic character, pass back all others if (!A_is_ok(c)) { @@ -347,14 +346,6 @@ int arabic_shape(int c, int *ccp, int *c1p, int prev_c, int prev_c1, int next_c) curr_c = c; } - if ((curr_c != c) && (ccp != NULL)) { - char buf[MB_MAXBYTES + 1]; - - // Update the first byte of the character - utf_char2bytes(curr_c, buf); - *ccp = (uint8_t)buf[0]; - } - // Return the shaped character return curr_c; } |